httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Bellin <aurorask...@gmail.com>
Subject [users@httpd] Proxy Internal Webserver
Date Mon, 16 Jun 2014 21:18:29 GMT
I have an apache server that I want to proxy an internal server (
192.168.1.25:32400/web) from an external domain name example.com/site1.

Below is my virtualhost for the main server.

<VirtualHost *:80>
ServerName www.example.com
DocumentRoot /var/www/html/example
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyRequests On
<Location /site1>
ProxyPass http://192.168.1.25:32400/web/
ProxyPassReverse http://192.168.1.25:32400/web/
Order allow,deny
Allow from all
</Location>
</Virtualhost>

What I see is when I try to go to my site example.com/site1, is that the
client's url changes to example.com/web/index.html which is invalid. What I
need is the client to display the page of 192.168.1.25:32400:/web/ at the
domain of example.com/site1.

What do I need to change in the above to make this work?

Thanks.

Mime
View raw message