So geben Sie die URL zum Proxy in Apache2 httpd.conf an

So geben Sie die URL zum Proxy in Apache2 httpd.conf an

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 /loginund dann anzugeben DocumentRoot?

Danke

verwandte Informationen