httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SarrCom.com - Reginald" <ad...@sarrcom.com>
Subject [users@httpd] Fw: mod_rewrite rules causing error 400 bad request
Date Mon, 21 Oct 2002 18:27:10 GMT
Hi everyone,
We purchased a Sun Cobalt RaQ 550 server and we have a problem with mod_rewrite rules we cannot
seem to solve. So far I've had 5 people look at it and no one was able to solve it.

The problem is error 400 ("bad request"). On our RaQ5 50 we use a virtual host with an inexistent
domain name 'centerallusers.com' to add a rewrite rule to access folder/subfolder/subfolder
through so called subdomains of another virtualhost of an existing domain 'center.com'. (The
reason why an inexistent domain name was used was in case the existing domain was down.)
Example: http://www.centerall.com/members/joh/john/  is accessible through http://www.john.centerall.com
(just an example, don't click it cause there's nothing there).

The funny thing is last week we did all of this on a RaQ 4i without any problem but on the
RaQ 550 we experience a lot of 400 Bad Requests when accessing the subdomains. When you refresh
the browser, the page does get displayed. Sometimes it works, sometimes it doesn't. When we
restart httpd, the problem is gone for a period of time (several hours) but it keeps coming
back.

* phpinfo.php of old Sun Cobalt RaQ 4i server:
- PHP Version 4.1.2
- Apache Version Apache/1.3.20 
- Apache Release 10320100 
- Apache API Version 19990320 
- Loaded Modules mod_ssl, mod_php4, mod_casp2, mod_setenvif, mod_unique_id, mod_auth, mod_auth_pam_external,
mod_access, mod_rewrite, mod...

* phpinfo.php of new Sun Cobalt RaQ 550 server:
- PHP Version 4.2.3
- Apache Version Apache/1.3.20 
- Apache Release 10320100 
- Apache API Version 19990320 
- Loaded Modules mod_casp2, mod_ssl, mod_php4, mod_setenvif, mod_unique_id, mod_auth, mod_access,
mod_rewrite ...
- url_rewriter.tags  a=href,area=href,frame=src,form=fakeentry  a=href,area=href,frame=src,form=fakeentry

Extract from etc/httpd/conf/httpd.conf:

-----Quote:-----
# owned by VirtualHost
NameVirtualHost 80.65.131.3

<VirtualHost 80.65.131.3>
ServerName www.centerallusers.com
ServerAlias centerallusers.com
ServerAdmin admin
DocumentRoot /home/.sites/106/site3/web
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
#RewriteLogLevel 9
#RewriteLog /var/log/httpd/rewrite.log
RewriteCond %{HTTP_HOST} ^www\.(.*)\.centerall\.com$ 
RewriteRule ^(.*) %{HTTP_HOST}$1 [C]
RewriteRule ^www\.(([a-z0-9][a-z0-9][a-z0-9])[a-z0-9]+)\.centerall\.com(.*)$ /home/.sites/106/site3/web/members/$2/$1%{REQUEST_URI}
RewriteOptions inherit
#AliasMatch ^/~([^/]+)(/(.*))?           /home/.sites/106/site3/users/$1/web/$3
# BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
AddHandler server-parsed .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
php_admin_value sendmail_path  "/usr/sbin/sendmail -t -i -finfo@centerall.com"
</VirtualHost>
# end of VirtualHost owned section

Include /etc/httpd/conf/vhosts/site3
-----Unquote.-----


Who can help, please?
Thanks in advance,
Brgds,
Reginald





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