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

Dylan Reinhardt zope@dylanreinhardt.com
Sun, 09 Mar 2003 23:40:05 -0800


Apache looks like it's set up correctly.

Here's a wild guess: I think the problem might be the name of your folder, 
openspirit.de.  Normally, it's not a big problem to use a dot in folder 
names, but I'll bet that name gets evaluated as a Python expression by VHM 
at some point.

What happens if you re-name it to openspirit_de and change the RewriteRule 
accordingly?

HTH,

Dylan

At 05:48 PM 3/9/2003, 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
>
>
>
>
>--
>Florian Konnertz   ---   http://www.florian-konnertz.de
>http://openspirit.homelinux.net/noowiki/FrontPage
>Improved ZWiki about all topics, especially consciousness research
>and wisdom traditions
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://mail.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
>http://mail.zope.org/mailman/listinfo/zope-dev )
>