httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCárthaigh <colmm...@Redbrick.DCU.IE>
Subject Re: 2.0.38-39 lockup problem ?
Date Wed, 19 Jun 2002 16:09:28 GMT
On Wed, Jun 19, 2002 at 11:13:48AM -0400, Cliff Woolley wrote:
> On Wed, 19 Jun 2002, [iso-8859-1] Colm MacCárthaigh wrote:
> 
> > will do, I've abondonded the rebuild without ssl, I just want this
> > to happen again. Generally takes 3-4 hours to pop up, expect feedback
> > later.
> 
> FWIW, I haven't seen anything like this on 2.0.38 or 2.0.39 on icarus.
> Not that a problem doesn't exist, just as a data point.

O.k., I've isolated the problem, by using netcat to see what was going to 
the server. The problem happens when the server gets queried with a Host: header 
that it doesnt know about. 

Turned off virtual hosts , didnt help. Turned off mod_rewrite, problem
went away. I'm redirecting some things based on Host.

Isolated to the following lines :

RewriteCond   %{HTTP_HOST}                      !^(.*)\,redbrick(.*)$ [NC]
RewriteRule   ^(.+)$                             %{HTTP_HOST}$1     [C]
RewriteRule   ^(.*):([0-9]+)/(.*)$              $1/$3            [C]
RewriteRule   ^(.+)/~(.*)$			http://www.redbrick.dcu.ie/~$2 [R,L]


well, more specifically, the second line of all those those.

I also have:

RewriteMap lowercase int:tolower

RewriteCond   %{HTTP_HOST}                 ^.*\.redbrick\.dcu\.ie$ [NC]
RewriteCond   %{HTTP_HOST}                 !^w*\.redbrick\.dcu\.ie$   [NC]
RewriteCond   %{HTTP_HOST}                 !^enigma\.redbrick\.dcu\.ie$   [NC]
RewriteCond   %{HTTP_HOST}                 !^prodigy\.redbrick\.dcu\.ie$   [NC]
RewriteCond   %{HTTP_HOST}                 !^lists\.redbrick\.dcu\.ie$   [NC]
RewriteCond   %{HTTP_HOST}                 !^mailman\.redbrick\.dcu\.ie$   [NC]
RewriteRule   ^(.+)                        ${lowercase:%{HTTP_HOST}}$1          [C]

at the start of the same rewrites config file.

Just 

RewriteCond   %{HTTP_HOST}                      !^(.*)\,redbrick(.*)$ [NC]
RewriteRule   ^(.+)$                             %{HTTP_HOST}$1     [C]

on their own will cause the problem. Changing the rule to:

RewriteRule banana	monkey

makes it go away, so it isnt the condition. Tried the following rules:

RewriteRule   ^(.+)$                             %{HTTP_HOST}$1
RewriteRule   ^(.*)$                             %{HTTP_HOST}$1
RewriteRule   (.*)                               %{HTTP_HOST}$1
RewriteRule   .*                             	 %{HTTP_HOST}${REQUEST_URI}

all produce the problem, nothing suspsicious is revealed in turning
rewrite logging on/up.

In the meantime I'm continueing to trace and living without a significant
portion of vhosts.

-- 
colmmacc@redbrick.dcu.ie        PubKey: colmmacc+pgp@redbrick.dcu.ie  
Web:                                 http://devnull.redbrick.dcu.ie/ 

Mime
View raw message