[Zope] VHM + apache + images

Sherwood Robinson srobinson@fredericksburg.com
Thu, 27 Dec 2001 10:56:04 -0500


Try it this way
RewriteRule ^/(.*) 
http://203.31.212.17:9080/VirtualHostBase/http/www.wells.com.au:80/wells/VirtualHostRoot/$1 
[L,P]

Notice the "L," in front of the P at the end of your RewriteRule statement


SR

At 09:09 AM 12/27/2001 -0500, Steve Spicklemire wrote:
>Hi Dean,
>
>         Hmm.. what happens when you type in the URL:
>
>http://www.wellsandsons.com/images/sunburst_logo.gif
>
>???
>
>-steve
>On Thursday, December 27, 2001, at 06:23 AM, Dean Grubb wrote:
>
>>Sorry about the HTML
>>
>>here's an example of what I usally get in the log file
>>
>>139.130.218.190 - - [27/Dec/2001:18:57:56 +1100] [www.wellsandsons.com
>> > au/sid#80af064
>> > ][rid#80f186c/initial] (1) go-ahead with proxy request proxy:http://203.31
>>212.17:908
>>0/VirtualHostBase/http/www.wellsandsons.com
>>au:80/wells/VirtualHostRoot/images/sunbur
>>st_logo.gif [OK]
>>
>>not sure really how to read this but it does say [OK] :)
>>
>>dean
>>
>>
>>
>>
>>
>>-------Original Message-------
>>From: Steve Spicklemire
>>Date: Thursday, December 27, 2001 21:57:00
>>To: Dean Grubb
>>Cc: Steve Spicklemire; zope@zope.org
>>Subject: Re: [Zope] VHM + apache + images
>>Hi Dean,
>>You're rewrite rule looks ok. Do you get any clues in the rewrite
>>log, or the access_log?
>>-steve
>>P.S. HTML is generally discouraged on this list.
>>On Thursday, December 27, 2001, at 12:16 AM, Dean Grubb wrote:
>>>Hi,
>>>
>>>I'am having problems with VHM, Apache and images, my rewrite
>>>statement is straight from the zope site..
>>>
>>>NameVirtualHost 203.31.212.17
>>><VirtualHost www.wells.com.au>
>>>ServerName www.wells.com.au
>>>DocumentRoot /home/www.wells.com.au
>>><IfModule mod_rewrite.c>
>>>RewriteEngine On
>>>RewriteLog "/var/log/apache/rewrite_log"
>>>RewriteLogLevel 1
>>>RewriteRule ^/(.*)
>>>http://203.31.212.17:9080/VirtualHostBase/http/www.wells.com.a
>>>u:80/wells/VirtualHostRoot/$1 [P]
>>></IfModule>
>>></VirtualHost>
>>>
>>>I have a VHM in my zope root with domain wells.com.au mapped to /wells
>>>
>>>the problem is all the html files get found ok but none of the images
>>>are displayed. My images or in /wells/images directory. Right
>>>clicking on the graphic shows that the graphic location is
>>>http://www.wells.com.au/images/somthing.gif
>>>
>>>If I do a http://203.31.212.17:9080/wells then everthing is ok.
>
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
>http://lists.zope.org/mailman/listinfo/zope-dev )

----------------------------------------------------
Sherwood Robinson
Hostmaster
The Free Lance-Star/Internet Department
srobinson@fredericksburg.com
http://www.fredericksburg.com

616 Amelia St.
Fredericksburg, VA 22401
540-374-5000 ext. 5657