[Zope] Apache configuration

Chris Withers chris at simplistix.co.uk
Tue Jan 18 13:52:15 EST 2005


Larry Silverman wrote:

> My apache config required the use of the SiteRoot component.  I have an
> apache web server w/SSL that I use for several things, and the zope/plone
> site is available under https://hostname/plone

SiteRoots are very very evil and need to go away.

> Using the Zope manage app, under my 'plone' site, I added a SiteRoot
> component, and set its path to /plone.
> 
> In httpd.conf in the 443 virtual host area, I have:
> RewriteEngine on
> RewriteRule ^/plone(.*)
> http://localhost:8080/plone/VirtualHostBase/https/hostname:443/plone/Virtual
> HostRoot/$1 [P] 
> 
> If you don't need SSL, this would be:
> RewriteEngine on
> RewriteRule ^/plone(.*)
> http://localhost:8080/plone/VirtualHostBase/http/hostname:80/plone/VirtualHo
> stRoot/$1 [P] 
> (note the two changes, https->http and 443->80)
> 
> Before I added the use of the SiteRoot, I could get the page, but all the
> links inside the page were pointing to https://hostname and not
> https://hostname/plone, and all images, stylesheets, etc were broken. 

The corect way to solve this is to change, for example, your non-ssl 
example would become...

http://localhost:8080/plone/VirtualHostBase/http/hostname:80/VirtualHostRoot/_vh_plone$1 
[P]

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk


More information about the Zope mailing list