[Zope] Problems with virtual hosting

Frank Sonnemans frank.sonnemans@euronet.be
Sat, 21 Jul 2001 00:23:55 +0200


I am trying to get virtual hosting to work, but run in some trouble. 
Whenever I try to callup a page I get a 404 error:

What am i missing??


My setup is as follows:

Freebsd 4.x
Apache 1.3 standard install with PHP, mod_per, Mason, etc
Zope working on port 8080 without CGI support

Virtual domain: umle.sbs-online.com
Root folder: /uml

http.conf settings:
    PerlModule Apache::DBI
    PerlRequire /home/www/mason.pl
    <Location />
        SetHandler perl-script
        PerlHandler HTML::Mason
    </Location>

    <Location /php>
        SetHandler application/x-httpd-php
    </Location>


NameVirtualHost 127.0.0.1:8080
<VirtualHost umle.sbs-online.com>
 ServerName umle.sbs-online.com
 <IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteLog "/var/log/apache/rewrite.log"
  RewriteLogLevel 1
  RewriteRule ^/~(.*) - [L]
  RewriteRule ^/(.*) 
http://127.0.0.1:8080/VirtualHostBase/http/umle.sbs-online.com:80/uml/Virtu
alHostRoot/$1 [P]
 </IfModule>
</VirtualHost>


Apache log messages:
213.177.129.32 - - [20/Jul/2001:14:55:04 -0700] 
[umle.sbs-online.com/sid#849f684][
rid#88b4034/initial] (1) go-ahead with proxy request 
proxy:http://127.0.0.1:8080/V
irtualHostBase/http/umle.sbs-online.com:80/uml/VirtualHostRoot/ [OK]
213.177.129.32 - - [20/Jul/2001:15:04:15 -0700] 
[umle.sbs-online.com/sid#849f684][
rid#88b4034/initial] (1) go-ahead with proxy request 
proxy:http://127.0.0.1:8080/V
irtualHostBase/http/umle.sbs-online.com:80/uml/VirtualHostRoot/index_html 
[OK]