More VHM + apache + images trouble
Hi everyone, I'd like to add a "me too" to Dean's question about broken images when using VHM and apache rewrite rules. Here's my configuration: I've got Zope running on port 8080 with the following rewrite rules in my httpd.conf file: <VirtualHost 10.0.0.2> #IP 208.42.140.222 ServerName www.qwerk.org DocumentRoot /var/www/qwerk.org ServerAlias qwerk.org *.qwerk.org RewriteEngine On RewriteLogLevel 0 RewriteLog "/var/log/apache/rewrite_log" RewriteRule ^/mailman/ - [L] RewriteRule ^/webalizer/ - [L] RewriteRule ^/~(.*) - [L] RewriteRule ^/(.*) http://www.qwerk.org:8080/VirtualHostBase/http/www.qwerk.org/Wilson/VirtualH... [P] </VirtualHost> The last rule rewrites requests for http://www.qwerk.org to http://www.qwerk.org:8080/Wilson/. Everything works perfectly when I visit http://www.qwerk.org:8080/Wilson/, but the main image is broken if you go to http://www.qwerk.org/. If you view the HTML source at http://www.qwerk.org/ you'll see that href for the image is clearly wrong. It leaves out the /Wilson. Unfortunately, the rewrite logs don't reveal much to me: 10.0.0.3 - - [27/Dec/2001:14:14:13 -0600] [www.qwerk.org/sid#80aec5c][rid#80c412c/initial] (2) init rewrite engine with requested uri / 10.0.0.3 - - [27/Dec/2001:14:14:13 -0600] [www.qwerk.org/sid#80aec5c][rid#80c412c/initial] (3) applying pattern '^/mailman/' to uri '/' 10.0.0.3 - - [27/Dec/2001:14:14:13 -0600] [www.qwerk.org/sid#80aec5c][rid#80c412c/initial] (3) applying pattern '^/webalizer/' to uri '/' 10.0.0.3 - - [27/Dec/2001:14:14:13 -0600] [www.qwerk.org/sid#80aec5c][rid#80c412c/initial] (3) applying pattern '^/~(.*)' to uri '/' 10.0.0.3 - - [27/Dec/2001:14:14:13 -0600] [www.qwerk.org/sid#80aec5c][rid#80c412c/initial] (3) applying pattern '^/(.*)' to uri '/' 10.0.0.3 - - [27/Dec/2001:14:14:13 -0600] [www.qwerk.org/sid#80aec5c][rid#80c412c/initial] (2) rewrite / -> http://www.qwerk.org:8080/VirtualHostBase/http/www.qwerk.org/Wilson/VirtualH... 10.0.0.3 - - [27/Dec/2001:14:14:13 -0600] [www.qwerk.org/sid#80aec5c][rid#80c412c/initial] (2) forcing proxy-throughput with http://www.qwerk.org:8080/VirtualHostBase/http/www.qwerk.org/Wilson/VirtualH... 10.0.0.3 - - [27/Dec/2001:14:14:13 -0600] [www.qwerk.org/sid#80aec5c][rid#80c412c/initial] (1) go-ahead with proxy request proxy:http://www.qwerk.org:8080/VirtualHostBase/http/www.qwerk.org/Wilson/VirtualH... [OK] Any advice would be appreciated. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson@visi.com | <dtml-var pithy_quote> | http://linux.com
Timothy Wilson wrote:
I'd like to add a "me too" to Dean's question about broken images when using VHM and apache rewrite rules.
Do you have a VHM installed in your Zope root? The root, mind you, not the /Wilson Folder. Cheers, Evan @ Zope
On Thu, 27 Dec 2001, Evan Simpson wrote:
Timothy Wilson wrote:
I'd like to add a "me too" to Dean's question about broken images when using VHM and apache rewrite rules.
Do you have a VHM installed in your Zope root? The root, mind you, not the /Wilson Folder.
Yes, it's there. My understanding is that the VirtualHostMonster doesn't need a particular id. Is that correct? My VHM is called 'QwerkRoot'. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson@visi.com | <dtml-var pithy_quote> | http://linux.com
Timothy Wilson wrote:
Yes, it's there. My understanding is that the VirtualHostMonster doesn't need a particular id. Is that correct? My VHM is called 'QwerkRoot'.
This is correct. When I simulate the RewriteRule by visiting: http://www.qwerk.org:8080/VirtualHostBase/http/www.qwerk.org:80/Wilson/Virtu... ...everything works fine. Looking back at your RewriteRule, I see that you're missing the ":80". That should fix it. Cheers, Evan @ Zope
On Thu, 27 Dec 2001, Evan Simpson wrote:
Timothy Wilson wrote:
Yes, it's there. My understanding is that the VirtualHostMonster doesn't need a particular id. Is that correct? My VHM is called 'QwerkRoot'.
This is correct. When I simulate the RewriteRule by visiting:
http://www.qwerk.org:8080/VirtualHostBase/http/www.qwerk.org:80/Wilson/Virtu...
...everything works fine. Looking back at your RewriteRule, I see that you're missing the ":80". That should fix it.
Thanks Evan. That did it. I must have inadvertently deleted that at some point while I was trying to figure out what was wrong. You rock! -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson@visi.com | <dtml-var pithy_quote> | http://linux.com
participants (2)
-
Evan Simpson -
Timothy Wilson