Hi there,
i would like to migrate from nginx to hproxy and need your help on this.
I have this location in nginx which i also want to map in haproxy, what is the best way to do this ?
location = / {
if ( $http_user_agent ~ ^DavClnt ) { return 302 /dav/$is_args$args; }
if ($request_method = "OPTIONS") { return 302 /dav/; }
if ($request_method = "PROPFIND") { return 308 /dav/; }
deny all;
}
location ^~ /.well-known {
location = /.well-known/caldav { return 301 /dav/;}
}
In haproxy i have a frontend and two backends, one for web
and the other for dav
.
What do i have to do so that these migrated locations are successfully forwarded to the backed dav
?
Sorry for all the questions, but i am completely a noob when it comes to haproxy.
thanks for any help.
Stefan