[Zope] Zope and Apache Virtual Host HELP..!!
Stuart Foster
stuartf@MediServe.com
Mon, 8 May 2000 18:02:15 -0700
I have developed a site using zope and am now ready to have my domain name
point to the zope site.
I did not use the root folder in zope for this site it is in it's own sub
folder. What I want is when a user types in mysite.com to go to the site I
developed in Zope. I am using the Zope 2.1.6 RPM and the Zope-pcgi 2.1.6
rpm.
I need this to go through Apache because there are other sites running on
the server.
Here is the Virtual host record out of the vhost.conf file
<VirtualHost 207.199.217.70>
ServerName mysite.com
ServerAlias *.mysite.com
TransferLog /home/mysite/transferlog
ErrorLog /home/mysite/errorlog
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/zope/
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/mysite(.*) /home/httpd/cgi-bin/zope/Zope.cgi/mysite$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) /home/httpd/cgi-bin/zope/Zope.cgi/mysite$1
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
</VirtualHost>
What happens now is if I go to www.mysite.com/mysite I get the Zope manager
interface. If I go to www.mysite.com I get Apache's default page.
What am I missing...? All I need is for the user to type www.mysite.com and
get it?
Any help would be much appreciated..
Thanks Stuart