Configuring virtual Hosts with Apache and zope.cgiOn a single server many ZMS clients are hosted; clients are addressed via different domain names. A solution based on zope.cgi is presented. Solution: Apache provides the option to use virtual hosts in order to have different servers for different IP addresses, different computer names or different ports on the same computer. The virtual hosts are entered into the file <VirtualHost IP_ADRESS>
ServerName www.myzms.com
ServerAdmin webmaster@myzms.com
ErrorLog /home/www/web3/log/error
CustomLog /home/www/web3/log/access combined
RewriteEngine On
RewriteRule ^/myzms/content/(.*) /$1
RewriteRule /myzms/content/(.*) /$1
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) /usr/local/httpd/zope-cgi-
bin/Zope.cgi/myzms/content$1 \
[e=HTTP_CGI_AUTHORIZATION:%1,
t=application/x-httpd-cgi,l]
</VirtualHost>Comment: In case that at first the secondary language shall be addressed by a domain, e.g. for the English variant the following Apache rule is used that redirects the entry request to index_eng.html: NOTE: The use of zope.cgi is considered to be out of date; the method of choice provides VHM (Virtual Host Monster)
References:
|
Home |
Sitemap |
Printversion |
Top |
Imprint |
pressinfo
© 2001-2008 Hoffmann+Liebenberg GmbH, SNTL Publishing GmbH & Co KG
|
ZMS is a partner project of medvalue.net