Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4729

Nginx to haproxy migration, need help with this

$
0
0

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

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>