This is a discussion on Need Help cleaning configuration within the Apache Web Server forums, part of the Web Server and Related Forums category; I inherited Apache setup to proxy request for a app running on tomcat. So, all request recieved on 80 are ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I inherited Apache setup to proxy request for a app running on tomcat.
So, all request recieved on 80 are forwarded to 8080 using ProxyPass and ProxyPassReverse. I have two problems with this setup 1) I need to setup bugzilla without creating another instance Apache. Bugzilla setup is relative to / and needs /cgi-bin/. Neither are available due to the forwarding setup. 2) I'm sure there is a better way to forward request to Tomcat. Here is the Vhost.conf NameVirtualHost *:80 <VirtualHost *:80> ProxyRequests On <Proxy *> Allow from all </Proxy> ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ </VirtualHost> NameVirtualHost jxsrv71:443 <VirtualHost jxsrv71:443> ProxyRequests On <Proxy *> Allow from all </Proxy> ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ SSLEngine on SSLCertificateFile /etc/ssl/apache/server.crt SSLCertificateKeyFile /etc/ssl/apache/server.key </VirtualHost> NameVirtualHost localhost:443 <VirtualHost localhost:443> ProxyRequests On <Proxy *> Allow from all </Proxy> ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ SSLEngine on SSLCertificateFile /etc/ssl/apache/server.crt SSLCertificateKeyFile /etc/ssl/apache/server.key </VirtualHost> NameVirtualHost 127.0.0.1:443 <VirtualHost 127.0.0.1:443> ProxyRequests On <Proxy *> Allow from all </Proxy> ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ SSLEngine on SSLCertificateFile /etc/ssl/apache/server.crt SSLCertificateKeyFile /etc/ssl/apache/server.key </VirtualHost> NameVirtualHost XXX.XXX.XXX.XXX:443 <VirtualHost XXX.XXX.XXX.XXX:443> ProxyRequests On <Proxy *> Allow from all </Proxy> ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ SSLEngine on SSLCertificateFile /etc/ssl/apache/server.crt SSLCertificateKeyFile /etc/ssl/apache/server.key </VirtualHost> |