[Zope] zope behind apache reverse proxy css and images broken using eduCommons

Tres Seaver tseaver at palladion.com
Wed Jun 9 07:57:13 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tapas Mishra wrote:
> Hi,
> I am running a website in a format
> http://ocw.mydomain.com
> where only http://mydomain.com has public IP.
> It is running on Apache.
> 
> Now I configured a reverse proxy to be able to reach the server where
> ocw.openitup.in is hosted on Zope
> what is happening is
>  request which is coming to a domain ocw.mydomain.com
> 
> first reaches the server  mydomain.com (which has a public IP).
> 
> 
> Then is being forwarded internally to where ocw is present like this
> 
>            URL_A/VirtualHostBase/http/URL_B/VirtualHostRoot/eduCommons
> 
> i.e. Apache at mydomain.com contains
> 
> ProxyPass   URL_A/VirtualHostBase/http/URL_B/VirtualHostRoot/eduCommons
> ProxyPassReverse   URL_A/VirtualHostBase/http/URL_B/VirtualHostRoot/eduCommons

The "best practice"[1] is to use mod_rewrite in conjunction with
mod_proxy, e.g.:

 RewriteEngine On
 RewriteRule ^/(.*) \
URLA/VirtualHostBase/http/%{HTTP_HOST}:80/rootfolder/VirtualHostRoot/$1\
[L,P]

where the backslashes indicates that the pattern should be on the same
line.  The "rewrite witch" can help with getting the rule syntax correct:

  http://betabug.ch/zope/witch



[1] http://wiki.zope.org/zope2/ZopeAndApache


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkwPgZkACgkQ+gerLs4ltQ7z2ACdF5tXnQ05peQKoWrRaBASaXFc
2xMAoL3iBdZr+ZD91ZNJbz15D2z0pfs+
=CsFt
-----END PGP SIGNATURE-----



More information about the Zope mailing list