httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah <s...@onastick.net>
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 
> 1.3.3.7:1337 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
http://httpd.apache.org/docs/vhosts/name-based.html, and the
<VirtualHost> documentation at
http://httpd.apache.org/docs/mod/core.html#virtualhost.

--n

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message