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

Redirect all path of front-end to a default page in backend server

$
0
0

I want to redirect all path not in the acl to the default login page in the backend server

frontend 123
acl to1 url_beg /api
acl to2 url beg /login
acl to3 url beg /logout
use_backend backend if to1
use_backend backend if to2
use_backend backend if to3

I want all request to the website not in the acl like www.abc.com/123, www.abc.com/xyz will default backend server like www.abc.com/login.jsp and remove all path /123 or /xyz

I try default_backend but it will add the path /123 or /xyz to the backend server

Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4714

Trending Articles



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