Apache+Zope=manage GUI gets screwed?
If you know how to solve this... I'm running Zope behind Apache and at the zope root there's a folder "info" which holds the site under zope. The idea of my setup is that anything else than http://www.kuva.fi/info/whatever is served from Apache and that .../info/whatever path comes from Zope. My httpd.conf looks like this ** ProxyPass /info/ http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHostRoot/... ProxyPassReverse /info/ http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHostRoot/... RewriteRule /info/.* http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHostRoot/... [R] Redirect /index.html http://www.kuva.fi/info/ ** Now this setup runs ok, but when I want to manage it, all the icons and css styles and that gets lost. The problem is that e.g. the zopes own manage_page_style.css gets looked from Apache's side and not from Zope. Hopefully I'm making some sense :-)If I've crasped this right, the problem is that for some reason the managing system generates URL's for icons which aren't proxyed but instead they point to the Apache's document root. Any ideas how to fix this? Using the actual ip address (193.167.128.250:8080/manage) instead of the hostname will work, but its not very convenient. jokke h.
On Sun, Dec 08, 2002 at 03:26:22PM +0200, Jokke Heikkil? wrote:
If I've crasped this right, the problem is that for some reason the managing system generates URL's for icons which aren't proxyed but instead they point to the Apache's document root. Any ideas how to fix this?
The simplest fix is to look in the manage page HTML source and see which directories are required. It may just be the '/p_' directory, but there may be others. Proxy whichever ones you need. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
Jokke Heikkilä writes:
If you know how to solve this...
I'm running Zope behind Apache and at the zope root there's a folder "info" which holds the site under zope. The idea of my setup is that anything else than http://www.kuva.fi/info/whatever is served from Apache and that .../info/whatever path comes from Zope. My httpd.conf looks like this ** ProxyPass /info/ http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHostRoot/... ProxyPassReverse /info/ http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHostRoot/... RewriteRule /info/.* http://www.kuva.fi:8080/VirtualHostBase/http/www.kuva.fi:80/VirtualHostRoot/... [R] Redirect /index.html http://www.kuva.fi/info/ ** A small side note:
you can live without the "ProxyPass" and "ProxyPassReverse" commands, when you use "[P]" instead of "[R]" for you rewrite rules.
Now this setup runs ok, but when I want to manage it, all the icons and css styles and that gets lost. I can answer your question for the icons; maybe, this is true, too, for style sheets and other static content:
Zope places them in pseudo folders "p_" and "misc_". You need to tell Apache that it directs requests for "^/p_/.*" and "^/misc_/.*" also to Zope. Dieter
participants (3)
-
Dieter Maurer -
Jokke Heikkilä -
Mike Renfro