VirtualHost and Apache: VH not found, why?
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/openspir... [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/openspir... [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
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/openspir... [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/openspir... [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
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/openspir... [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/openspir... [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 )
On Sun, Mar 09, 2003 at 11:40:05PM -0800, Dylan Reinhardt wrote:
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.
In my experience, it handles it fine. I named one of my vhost folders www.cae.tntech.edu many, many months ago. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
At 06:36 AM 3/10/2003, Mike Renfro wrote:
On Sun, Mar 09, 2003 at 11:40:05PM -0800, Dylan Reinhardt wrote:
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.
In my experience, it handles it fine. I named one of my vhost folders www.cae.tntech.edu many, many months ago.
All the docs I've seen on VHM seem to make a point of using underscores instead of dots in the folder name, which is why I thought of it. Looking back over the OP, I noticed something else... they're running Zope 2.5.0, which has known VHM bugs: http://collector.zope.org/Zope/235/collector_issue_contents Zope 2.5.1 VHM works great... I've been running that for months without incident. Getting warmer? Dylan
* Florian Konnertz [02:48 10/03/03 CET]:
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/openspir... [P] </IfModule> </VirtualHost> --------------------------------
Didn't you forget the NameVirtualHost directive ? HTH -- (°> Nicolas Évrard / ) Liège - Belgique ^^
participants (5)
-
Dylan Reinhardt -
Edward Muller -
Florian Konnertz -
Mike Renfro -
Nicolas Évrard