Possible mod_rewrite problem?

Discussion in 'Apache' started by frode, Jul 31, 2006.

  1. #1
    My problem is as follows. We have severall webservers running debian linux and apache 1.3.33. Sometimes I find numerous entries like these in the status-log:
    
    98-21	14299	0/0/32	W 	0.11	6	0	0.0	0.00	0.13 	serveradress	valid-serveralias	POST //cgi-bin/formmail.pl HTTP/1.1
    99-21	14300	0/0/68	W 	0.27	6	0	0.0	0.00	0.75 	serveradress	valid-serveralias	POST ////cgi-bin/formmail.pl HTTP/1.1
    147-21	-	0/0/7	. 	0.06	2006	40818	0.0	0.00	0.02 	serveradress	valid-serveralias	POST ///////cgi-bin/formmail.pl HTTP/1.1
    .
    .
    .
    148-21	-	0/0/6	. 	0.05	2006	40767	0.0	0.00	0.03 	serveradress	valid-serveralias	POST //////////////////////////////////////////////////////////
    149-21	-	0/0/11	. 	0.06	2006	40671	0.0	0.00	0.01 	serveradress	valid-serveralias	POST //////////////////////////////////////////////////////////
    
    Code (markup):
    I've changed the servernames, valid-serveralias points to a virtualhost on serveradress. This is the mod-rewrite. This is the same for all users, except the username.
    
    RewriteEngine On
    RewriteCond /var/www/home/username%{REQUEST_FILENAME} !-f
    RewriteCond   /var/www/%{REQUEST_FILENAME} -f
    RewriteRule   ^(.+) http://*****.***.**/$1  [P]
    ScriptAlias /cgi-bin/ /var/www/home/username/cgi-bin/
    ScriptAlias /cgi-bin/ /var/www/cgi-bin/
    
    Code (markup):
    This will of course eventually bog the server completely down, but for the moment we have contained it by using mod_throttle. I've seen both POST and GET commands with similar strange syntax.

    So my question to you is wether or not this could be caused by an error in our mod_rewrite or if I need to look somewhere else to find the source of this error?
     
    frode, Jul 31, 2006 IP