[Zope] Newbie questions.
John Eikenberry
jae@kavi.com
Thu, 11 Mar 1999 16:02:23 -0800 (PST)
On Thu, 11 Mar 1999, Craig H. Rowland wrote:
> Question 1:
>
> Under Zope, what is the proper way to configure the website so users can
> simply go to http://www.example.com instead of:
>
> http://www.example.com/example
> http://www.example.com:9673/
> etc.
Use Apache's VirtualHost ability...
Look here for more info: http://www.apache.org/docs/vhosts/
An example:
# in httpd.conf
# your ip
NameVirtualHost 192.123.44.3
# your standard host.domain (this must come first)
<VirtualHost 192.123.44.3>
ServerName your.standard.name
DocumentRoot /home/httpd/html
</VirtualHost>
# one or more extra virtual hosts
<VirtualHost 192.123.44.3>
ServerName your.zope.name
DocumentRoot /home/httpd/html
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^/(.*) /home/httpd/cgi-bin/Zope.cgi/$1 \
[e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
</VirtualHost>
---
John Eikenberry
[jae@kavi.com - http://taos.kavi.com/~jae/]
______________________________________________________________
"A society that will trade a little liberty for a little order
will deserve neither and lose both."
--B. Franklin