[Zope] Virtual hosts

Ed Leafe ed at leafe.com
Sat Jan 31 12:10:32 EST 2004


On Jan 31, 2004, at 11:53 AM, John Poltorak wrote:

> Is it possible to use Zope with virtual hosts where each host has a
> different set of access controls?

	Sure; I do it with a few different virtual hosts on my site. Using  
Virtual Host Monster, just create a different mod_rewrite rule in  
Apache for each host that maps to the appropriate folder in Zope that  
is the base for each virtual host. E.g., with two folders off the Zope  
root named 'foo' and 'bar':

<VirtualHost *>
	ServerName foo.leafe.com
	RewriteRule ^/(.*)  
http://localhost:8080/VirtualHostBase/http/leafe.com:80/bar/ 
VirtualHostRoot/$1 [NC,L,P]
</VirtualHost>

<VirtualHost *>
	ServerName bar.leafe.com
	RewriteRule ^/(.*)  
http://localhost:8080/VirtualHostBase/http/leafe.com:80/bar/ 
VirtualHostRoot/$1 [NC,L,P]
</VirtualHost>


      ___/
     /
    __/
   /
  ____/
  Ed Leafe

Linux Love:
unzip;strip;touch;finger;mount;fsck;more;yes;umount;sleep




More information about the Zope mailing list