httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah <>
Subject Re: [users@httpd] BUG? RewriteEngine from VirtualHost invoked on response to CONNECT
Date Tue, 15 Mar 2005 15:23:32 GMT
On Tue, Mar 15, 2005 at 03:54:53PM +0100, Alberto Barbati wrote:
> 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".
> --------------
> <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]
> </VirtualHost>
> --------------

> 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.

If this is the first VirtualHost block in your httpd.conf, it's the
'default' VirtualHost, and is the one Apache will use for requests that
don't match an explicit VirtualHost block. So, if the CONNECT request
was issued to your IP address and no Host: header was sent, the default
VirtualHost block will get used. See 'Using Name-based Virtual Hosts' at, and the
<VirtualHost> documentation at


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