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

Redirect all requests without a path

$
0
0

I tried this but it’s not redirecting. How do I test to see if the incoming request has nothing in the path or just / in the path.

acl is_root_request path /

http-request redirect code 301 location https://parked-domains.com/?domain=%[req.hdr(Host)] if is_root_request

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



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