[Zope] VirtualHost and Apache: VH not found, why?

Edward Muller edwardam@interlix.com
10 Mar 2003 01:09:11 -0600


try [L,P]

although I don't know if that will fix it.

On Sun, 2003-03-09 at 19:48, Florian Konnertz wrote:
> Hello all!
> 
> Please help me with the following VirtualHost problem using of Zope 
> behind Apache in the common way (Apache first (needed for other 
> websites) zope behind it (should also drive several domains.))
> 
> 
> 
> Conf. details:
> 
> http://noowiki.homelinux.net points to my local IP.
> 
> Ports:
> - Apache is listening on Port 80
> - Zope is listening on port 8080
> 
> --------------------------------
> 
> Apache:
> 
> /etc/apache/httpd.conf
> 
> Port 80
> [...]
> <VirtualHost *>
>          ServerName noowiki.homelinux.net
>          ServerAlias noowiki.homelinux.net
>          <IfModule mod_rewrite.c>
>                  RewriteEngine On
>                  RewriteRule ^/(.*) 
> http://localhost:8080/VirtualHostBase/http/noowiki.homelinux.net:80/openspirit.de/VirtualHostRoot/$1
> [P]
>          </IfModule>
> </VirtualHost>
> --------------------------------
> 
> Zope:
> - Port 8080
> - VitualHostMonster in root folder, no entries in mappings tab
> - content ie. index_html in folder "openspirit.de" in root
> 
> z2.py
> 
> # Port for HTTP Server. The standard port for HTTP services is 80.
> HTTP_PORT=8080
> 
> -------------------------------
> 
> Error:
> 
> Resource not found
> Sorry, the requested resource does not exist.
> 
> Check the URL and try again.
> 
> Resource: VirtualHostBase GET
> 
> Traceback (innermost last):
>    File /usr/local/Zope-2.5.0-src/lib/python/ZPublisher/Publish.py, line 
> 150, in publish_module
>    File /usr/local/Zope-2.5.0-src/lib/python/ZPublisher/Publish.py, line 
> 114, in publish
>    File /usr/local/Zope-2.5.0-src/lib/python/Zope/__init__.py, line 158, 
> in zpublisher_exception_hook
>      (Object: Zope)
>    File /usr/local/Zope-2.5.0-src/lib/python/ZPublisher/Publish.py, line 
> 89, in publish
>    File /usr/local/Zope-2.5.0-src/lib/python/ZPublisher/BaseRequest.py, 
> line 278, in traverse
>    File /usr/local/Zope-2.5.0-src/lib/python/OFS/Application.py, line 
> 102, in __bobo_traverse__
>      (Object: Zope)
>    File /usr/local/Zope-2.5.0-src/lib/python/ZPublisher/HTTPResponse.py, 
> line 470, in notFoundError
> NotFound: (see above)
> 
> -------------------------
> 
> Logs:
> 
> root@grooveway:/var/log/apache# tail -f rewrite_log
> 192.168.0.13 - - [08/Mar/2003:18:58:13 +0100] 
> [noowiki.org/sid#80d7f8c][rid#80e5fe4/initial] (1) go-ahead with proxy 
> request 
> proxy:http://localhost:8080/VirtualHostBase/http/noowiki.homelinux.net:80/openspirit.de/VirtualHostRoot/
> [OK]
> 
> tail  /usr/local/Zope-2.5.0/var/Z2.log
> 127.0.0.1 - Anonymous [08/Mar/2003:19:24:19 +0200] "GET 
> /VirtualHostBase/http/noowiki.homelinux.net:80/openspirit.de/VirtualHostRoot/ 
> HTTP/1.0" 404 2298 "" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) 
> Gecko/20020826"
> 
> 
> What's wrong?
> Do i have to put an entry in the mappings tab?
> 
> I hope you can give me a hint what to try next, I'll be very glad if i'd 
> solve this prob because then i can migrate my site to my own root server!
> 
> 
> Best regards and TIA,
> Florian
> 
-- 
Edward Muller

Interlix - President

Web Hosting - PC Service & Support
Custom Programming - Network Service & Support

Phone: 417-862-0573
 Cell: 417-844-2435
  Fax: 417-862-0572

http://www.interlix.com