Proxy Internal Webserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux