I am trying to setup a reverse proxy using apache 2048. I have 1
server inside our network named "websvr" that is only connected to our
internal lan. The reverse proxy is connected to the internet with a
static IP number and also the internal lan. From the reverse proxy, I
am able to reach the internal websvr.
The internal websvr has a java application that listens on port 9000
I have tried using ProxyPass and ProyPassReverse configured as the
following:
ProxyPass /
http://websvr/
ProxyPassReverse /
http://websvr/
Using this setup, I have been able to reach the internal websvr from
outside the network, but when I lauch the java application it is
unable to connect on port 9000.
I have also tried using virtual hosts, but was not able to even reach
the login page that I could using ProxyPass and ProxyPassReverse.
Here is how I setup the virtual host:
NameVirtualHost 24.106.83.131:80
NameVirtualHost 24.106.83.131:9000
<VirtualHost 24.106.83.131:80>
ServerName 192.168.2.30:80
</Virtualhost>
<VirtualHost 24.106.83.131:9000>
ServerName 192.168.2.30:9000
</Virtualhost>
Where NameVirtualHost is my public IP#'s and ports, and ServerName is
the IP number of the websvr on the lan.
I am new to apache, so any help would be greatly appreciated.