I've setup a virtual host in Apache and a VHM in Zope according to the instructions at http://www.zope.org/Members/regebro/Zope_and_Apache However, when I request ckt.internal.epo.org, I get the Apache welcome page rather than my Zope page (localhost:8080/CKT/) This is what I added to httpd.conf <VirtualHost *> ServerName ckt.internal.epo.org RewriteEngine on RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/ckt.internal.epo.o rg:80/CKT/VirtualHostRoot/$1 [L,P] ProxyVia on </VirtualHost> After reloading, running httpd -S gives me: *:80 is a NameVirtualHost default server ckt.internal.epo.org (/etc/httpd/httpd.conf:1358) port 80 namevhost ckt.internal.epo.org (/etc/httpd/httpd.conf:1358) The rewrite and proxy modules are (I believe) being loaded dynamicaly. Apache 1.3.27 on Suse 8.2. VHM id is VHost without any mapping. I've also restarted Zope and did httpd reload. It seems like the Apache VirtualHost is not being "activated" or the RewriteRule is being ignored?? Can you see a problem with my configuration or at least help me better identify the problem? Regards, Fernando
Fernando Correia Martins wrote:
I've setup a virtual host in Apache and a VHM in Zope according to the instructions at
http://www.zope.org/Members/regebro/Zope_and_Apache
However, when I request ckt.internal.epo.org, I get the Apache welcome page rather than my Zope page (localhost:8080/CKT/)
Just a guess, but have you tried ckt.internal.epo.org/ (note the trailing slash). If this works, I'd remove the correspondening slash in your Rewrite Rule
This is what I added to httpd.conf
<VirtualHost *> ServerName ckt.internal.epo.org RewriteEngine on RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/ckt.internal.epo.o rg:80/CKT/VirtualHostRoot/$1 [L,P] ProxyVia on </VirtualHost>
HTH, oliver
Fernando Correia Martins wrote:
It seems like the Apache VirtualHost is not being "activated" or the RewriteRule is being ignored??
It does seem that way. You have AddModule mod_rewrite.c AddModule mod_proxy.c LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so in your config file I assume? If that is the case, then I don't know why it doesn't work. You'll might get better help on an apache-list, as this must be an apache config problem.
Fernando Correia Martins wrote at 2003-6-3 20:55 +0200:
I've setup a virtual host in Apache and a VHM in Zope according to the instructions at
http://www.zope.org/Members/regebro/Zope_and_Apache .... It seems like the Apache VirtualHost is not being "activated" or the RewriteRule is being ignored??
Can you see a problem with my configuration or at least help me better identify the problem?
No. Activate RewriteRule logging and see whether the log file contains hints to your problem. Dieter
Many thanks to all who helped. The final solution was provided by someone from the Apache list. For the record, the problem was that the httpd process was not getting the new configuration information. I was relying on some commands from old documentation, httpd [stop | start | reload], which didn't work with this version of Apache (and I was not getting any error message). After Apache 1.3, one can use apachectl [stop | start | restart]. Another interesting issue, not referred to in the document below, is that if Apache is being used to serve another web site (with the same IP as yours) than you also have to create another VirtualHost configuration for that web site. This is important if you don't want to upset the other users :-). Regards, Fernando Dieter Maurer wrote:
Fernando Correia Martins wrote at 2003-6-3 20:55 +0200:
I've setup a virtual host in Apache and a VHM in Zope according to the instructions at
http://www.zope.org/Members/regebro/Zope_and_Apache .... It seems like the Apache VirtualHost is not being "activated" or the RewriteRule is being ignored??
Can you see a problem with my configuration or at least help me better identify the problem?
No.
Activate RewriteRule logging and see whether the log file contains hints to your problem.
Dieter
_______________________________________________ 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 )
participants (5)
-
Dieter Maurer -
Fernando Correia Martins -
Fernando Martins -
Lennart Regebro -
Oliver Bleutgen