[Zope] Problem with %20 in Query String

Michael cadaver at tucu.net
Thu Nov 11 16:05:35 EST 2004


Hi,

I have Zope 2.7.2 and Plone 2.0.4 set up on a FreeBSD server via the  
ports system and I have a virtual host which I've configured like this  
in Apache 1.3:
<VirtualHost 216.23.182.153:80>
     ServerName www.angleoslo.com
     ServerAlias angleoslo.com
     <IfModule mod_rewrite.c>
         RewriteEngine On
         RewriteCond %{HTTP_HOST} !^www\.angleoslo\.com [NC]
         RewriteCond %{HTTP_HOST} !^angleoslo\.com [NC]
         RewriteRule ^/(.*) - [L,F]
         RewriteRule ^/(.*) \
              
http://zope.tucu.net:8080/VirtualHostBase/http/www.angleoslo.com:80/
www.angleoslo.com/VirtualHostRoot/$1 [L,P]
     </IfModule>
</VirtualHost>

The problem is that if you go to the web page  
<http://www.angleoslo.com/> and click on an event in the calendar such  
as the one on 11/12/2004 the URL is the following:
<http://www.angleoslo.com/search?review_state=published&start: 
date=2004-11-13%2000%3A00%3A00&start_usage=range:max&end:date=2004-11 
-12%2000%3A00%3A00&end_usage=range:min>

You'll notice that there are '%20' (instead of '+') in the query  
string. Apache chokes on this and returns a 400 error for a bad  
request. Getting the same URL from Zserver works just fine since it  
doesn't mind the '%20' in the query string.

Does anyone know of a good way to set up a virtual host in such a way  
that this problem goes away?

Thanks,

Michael



More information about the Zope mailing list