Apache configuration

1
Hi all, I am configure a web server which our customer prefer an Apache. Our web server is running on 10.0.0.3 and XAS is running on Application server (10.0.0.4:9090). With my configuration so far the web server can redirect request from 10.0.0.3 --> 10.0.0.4:9090. But we want that the URL on the address bar of the web browser stay showing 10.0.0.3. How can I do that? Here is my Virtual host configurations: <VirtualHost *:80> ServerName 10.0.0.3 <Location /> order allow,deny allow from all RedirectMatch ^/.* http://10.0.0.4:9090/ </Location> </VirtualHost> <VirtualHost *:443> ServerName 10.0.0.3 DocumentRoot /mx/rtp/application/web/ ProxyPass /xas http://10.0.0.4:9090/xas ProxyPassReverse /xas http://10.0.0.4/xas # Uncomment if you want to use WSDL/Webservices functionality #ProxyPass /ws http://[::1]:8195/ws #ProxyPassReverse /ws http://[::1]:8195/ws <Location /> order allow,deny allow from all </Location> </VirtualHost> Many thanks, Panayu
asked
1 answers
2

You're redirecting everything from port 80 to 10.0.0.4:9090, don't you want to redirect it to <myapachehost>:443 instead? That way the *:443 virtualhost will proxy everything, hiding your port number.

answered