httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Barbati <>
Subject [users@httpd] BUG? RewriteEngine from VirtualHost invoked on response to CONNECT
Date Tue, 15 Mar 2005 14:54:53 GMT
Hi Everybody,

[Fedora Core 3, httpd 2.0.52]

as many of us, I periodically see in my logs an attempt to check the 
proxy capabilities of my server, namely the request "CONNECT HTTP/1.0".

I would expect the request to fail with a result of 4xx (405 to be 
exact). With my surprise, I found that the request succeded with a 
result of 301 (redirect permanently) instead. As the redirected URL 
contained the string "/mailman/info" I quickly understood that the 
problem was in the configuration of one of my virtual hosts (the one 
that handles mailman lists):

<VirtualHost X.X.X.X:80>
  ServerName lists
  ServerAlias lists.*
  UseCanonicalName Off

  RewriteEngine On
  RewriteRule  ^/(mailman/?)?$  /mailman/listinfo  [R=permanent,L]

  [rest omitted for brevity]


The one above is the only occurrence of "RewriteEngine On" in my whole 

It seems that the CONNECT request has been processed by mod_rewrite 
according to a directive that should be restricted to my named-based 
virtual host. This looks very fishy to me.

As a workaround, I added

    RewriteCond %{REQUEST_METHOD} ^GET$

before the RewriteRule, yet I think my original configuration had 
nothing wrong and Apache should have behaved differently.

Is it a bug in Apache? Has it been fixed in 2.0.53 (o later)? Am I 
missing something?

Thanks in advance,


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message