I'm trying to setup Apache as a reverse proxy for a domain-name. It should redirect to an application running on a Apache Tomcat server
i'm using the following configuration:
<VirtualHost *:80> ServerName sub.domain.com ProxyPass / http://localhost:8080/application/ ProxyPassReverse / http://localhost:8080/application/ ProxyPreserveHost On </VirtualHost>
However when I go to http://sub.domain.com it results in an endless loop of http redirects. It also automatically adds the subdirectory to the url. http://sub.domain.com changes in http://sub.domain.com/application/
Does anyone know how to solve this?