
Ich habe eine in Tomcat bereitgestellte Spring-Anwendung, deren URLs ich über einen Apache2-Webserver proxyen möchte. Im Moment mache ich das folgendermaßen:
<VirtualHost *:8080>
ProxyPass /app/login http://localhost/app/login
ProxyPassReverse /app/login http://localhost/app/login
ProxyPass /app/home http://localhost/app/home
ProxyPass /app/profile http://localhost/app/profile
...
</VirtualHost>
Ist es zunächst in Ordnung, das zu tun? Ist es möglich, es nur durchzugehen /login
und dann anzugeben DocumentRoot
?
Danke