[ZWeb] using 2 reverse proxy for one application

Tapas Mishra mightydreams at gmail.com
Mon Jun 7 10:27:14 EDT 2010


Hi,
 due to some problem I have to use 2 reverse proxy to access an internal server.


Server A              Server B -----------instance 1
Public IP            192.168.1.5
                                   |
                                   | --------------instance2

On the first one that is A

ProxyPass / http://192.168.1.5
ProxyPassReverse / http://192.168.1.5


and the internal Server is running a server known as Zope and
application is available on 8080 on it.
To be able to redirect a request to Zope on local machine the Apache
Vhost configuration should be some thing like this

ProxyPass / http://localhost:8080/VirtualHostBase/http/localhost:80/vhm/VirtualHostRoot/application
ProxyPassReverse /
http://localhost:8080/VirtualHostBase/http/localhost:80/vhm/VirtualHostRoot/application


What is happening is if some one tries to reach application with
Public IP of server A
then in url at first ProxyPass
http://192.168.1.5 is written and then on this server B
another ProxyPass is written so the
effective url on A becomes

http://localhost:8080/VirtualHostBase/http/localhost:80/vhm/VirtualHostRoot/application

and application is not running on A so some one from outside can not access it.
So in this situation what should I do?





-- 
Tapas


More information about the Zope-web mailing list