[Zope] Zope and Apache Virtual Host HELP..!!

Stuart Foster stuartf@MediServe.com
Tue, 9 May 2000 09:57:48 -0700


Thank you that seems to work.

-----Original Message-----
From: Hannu Krosing [mailto:hannu@tm.ee]
Sent: Monday, May 08, 2000 11:34 PM
To: Stuart Foster
Cc: 'zope@zope.org'
Subject: Re: [Zope] Zope and Apache Virtual Host HELP..!!


Stuart Foster wrote:
> 
> 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

try with ^/mysite/(.*) /home/httpd/cgi-bin/zope/Zope.cgi/mysite/$1

it may or may not help ;)

> [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
>   RewriteCond %{HTTP:Authorization}  ^(.*)
>   RewriteRule ^(.*) /home/httpd/cgi-bin/zope/Zope.cgi/mysite$1

and ^/(.*) /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
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )