You are not logged in Log in Join
You are here: Home » Members » andy » Virtual Host Monster-ing on Cobalt RAQ Servers

Log in
Name

Password

 

Virtual Host Monster-ing on Cobalt RAQ Servers

Here's a section I've just added to the httpd.conf file of a cobalt raq server
in order to get virtual hosting working in conjunction with the raq's existing
virtual host machinery. In the end I had to replace the virtual host entries in
their entirity as they were interfering with the apache rewrite mechanism.

Although it's very simple, it took me a few hours to get the correct
combination of rules required to get it to 'do the right thing',
so I hope I can avoid someone else unnecessary headbanging :).

Cheers,

A.




Replace virtualhost section for mysite.com with the following. Assumes zope running on raq at port 8081.
Virtual host monster has been placed in root directory of zope installation.
Content for mysite.com is found in the directory /andy of the zope installation.

<VirtualHost 123.123.123.123>
ServerName www.mysite.com
ServerAdmin admin
ServerAlias mysite.com
RewriteEngine on
RewriteRule ^/(.*) http://localhost:8081/VirtualHostBase/http/www.mysite.com:80/and\
y/VirtualHostRoot/$1 [P]
</VirtualHost>