mod_cluster/mod_proxy redirects user to JBoss backend server ip when trailing slash is missing
Issue
- I'm routing requests from an Apache httpd server on the front end to the http connectors on my JBoss backend via mod_cluster. When accessing localhost/test (with the trailing / missing, instead of localhost/test/) from the Apache front end, the user is redirected to the JBoss address (host:8080) instead of just being proxied to it.
- I'm using mod_proxy like so to proxy to another remote server:
ProxyPass / http://backendip:80/But when I type in url http://frontenddomain.com/foo, the response comes back as http://backendip/foo/
Environment
- JBoss Enterprise Application Platfrom (EAP)
- Apache httpd
- mod_cluster
- mod_proxy
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.