[Zope] httpd.conf Zope on Apache-based ISP
Patrick Kirk
patrick at kirks.net
Thu Feb 26 03:55:19 EST 2004
Hi Troy,
That looks so easy it'd be perfect! Let me do the exact drafting and
post it to you and the list for a sanity check before sending to the ISP.
The path to the html folder is /websites/enterpri/public_html
Zope will be untarred to a folder called
/websites/enterpri/public_html/zope and configured to run on port 8081
All the hosting provider needs do is add this enter to httpd.conf
<VirtualHost 195.224.53.44>
ServerName www.enterprise-hr.com
DocumentRoot /websites/enterpri/public_html/zope
RewriteEngine on
RewriteRule ^/(.*)
http://64.5.48.153:8081/VirtualHostBase/http/enterprise-hr.com:80/websites/enterpri/public_html/zope/VirtualHostRoot/$1
[L,P]
</VirtualHost>
Once the virtual host monster is configured and zope is listening and
8081, there is no more the hosting partner needs do.
Does this look right?
Troy Farrell wrote:
> I have a site (studyshare.net) which is served from Zope's
> /sites/studyshare_net/ folder. Zope is running on localhost port 8085.
> There is a Virtual Host Monster in the Zope Root and I use this rewrite
> rule:
>
> RewriteRule ^/(.*)
> http://127.0.0.1:8085/VirtualHostBase/http/studyshare.net:80/sites/studyshare_net/VirtualHostRoot/$1
> [L,P]
>
> The big difference here is that I am using apache as a proxy in front of
> Zope. It looks like you're trying to use PCGI. Since this RewriteRule
> grabs all requests, it needs to be last.
>
> Troy
>
>
>>Hi all,
>>
>>I'm putting a Zope site on an Apache based hosting service. They've
>>asked me to suggest the virtual hosts section of httpd.conf and for me
>>to run Zope on 8081 to avoid conflicts. The files are in a folder
>>called /websites/patrkirk/public_html/ with a cgi folder called
>>/websites/patrkirk/public_html/cgi_bin/
>>
>>It seems that there are very many ways of doing this and I'm at a loss
>>how to choose the right way.
>>
>>Can anyone suggest an authoritative URL that simply allows zope to run
>>on some high number port with Apache serving up its pages? I have no
>>access to Apache so extensive re-writes of httpd.conf are unlikely to be
>>accepted by the ISP.
>>
>>This is my first draft.
>>
>># Zope redirection
>><IfModule mod_rewrite.c>
>> RewriteEngine on
>> RewriteCond %{HTTP:Authorization} ^(.*)
>> RewriteRule ^/Zope/(.*) /var/lib/zope/cgi-bin/default/$1
>>[t=application/x-httpd-cgi,l]
>></IfModule>
>>
>><VirtualHost 195.224.53.44>
>> ServerName www.enterprise-hr.com
>> DocumentRoot /websites/patrkirk/public_html/zope
>> RewriteEngine on
>> RewriteRule ^/(.*) /var/lib/zope/cgi-bin/default/$1
>>[t=application/x-httpd-cgi,l]
>></VirtualHost>
>>
>>Does this look right and if not can someone please tell me what I need
>>to do?
>>
>>Thanks in advance.
More information about the Zope
mailing list