Invalid method in request

marlex

New member
Joined
Mar 14, 2012
Messages
2
Hello,

I have a server with DirectAdmin and I must say: with DirectAdmin, management is so easy. Unfortunately, yesterday I rebooted my server (it was working fine for at least one year) and now, no one of my sites open.

When I see the Apache error log, I see "Invalid Method in Request" messages, followed by an attempt to load the 501 error page.

I've seen so many websites talking about the problem, but they said that the problem comes with SSL configuration. I've double checked that and its fine, according to their blog posts.

Code:
[Wed Mar 14 12:33:46 2012] [error] [client 190.75.66.220] Invalid method in request 
[Wed Mar 14 12:33:46 2012] [error] [client 190.75.66.220] File does not exist: /var/www/html/501.shtml
[Wed Mar 14 12:33:47 2012] [error] [client 190.243.10.172] Invalid method in request 
[Wed Mar 14 12:33:47 2012] [error] [client 190.243.10.172] File does not exist: /var/www/html/501.shtml
[Wed Mar 14 12:33:47 2012] [error] [client 190.122.66.180] Invalid method in request 
[Wed Mar 14 12:33:47 2012] [error] [client 190.122.66.180] File does not exist: /var/www/html/501.shtml
[Wed Mar 14 12:33:47 2012] [error] [client 190.79.160.203] Invalid method in request 
[Wed Mar 14 12:33:47 2012] [error] [client 190.79.160.203] File does not exist: /var/www/html/501.shtml
[Wed Mar 14 12:33:48 2012] [error] [client 186.145.227.64] Invalid method in request 
[Wed Mar 14 12:33:48 2012] [error] [client 186.145.227.64] File does not exist: /var/www/html/501.shtml
[Wed Mar 14 12:33:48 2012] [error] [client 67.142.130.34] Invalid method in request 
[Wed Mar 14 12:33:48 2012] [error] [client 67.142.130.34] File does not exist: /var/www/html/501.shtml
[Wed Mar 14 12:33:49 2012] [error] [client 186.181.46.20] Invalid method in request 
[Wed Mar 14 12:33:49 2012] [error] [client 186.181.46.20] File does not exist: /var/www/html/501.shtml
[Wed Mar 14 12:33:49 2012] [error] [client 201.103.255.111] Invalid method in request 
[Wed Mar 14 12:33:49 2012] [error] [client 201.103.255.111] File does not exist: /var/www/html/501.shtml
[Wed Mar 14 12:33:50 2012] [error] [client 186.46.91.58] Invalid method in request 
[Wed Mar 14 12:33:50 2012] [error] [client 186.46.91.58] File does not exist: /var/www/html/501.shtml
[Wed Mar 14 12:33:50 2012] [error] [client 190.240.133.212] Invalid method in request 
[Wed Mar 14 12:33:50 2012] [error] [client 190.240.133.212] File does not exist: /var/www/html/501.shtml

My server is a CentOS Linux, and in order to check if it was configuration problems, I've reinstalled the whole server and configured just one website from scratch, and nothing happened. At my point of view, it seems that when I configure the domain, once one user access them, the server "serves" the localhost folder (/var/www/) and not the public_html folder on their home.

Any help would be appreciated.
 
If you did rebuild, you might need to update your Apache configs with

Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs

Please let me know, how it helps.
 
Hello,

I've done that. Nothing happened. Still with the same problem. Any other idea?
 
Most likely a problem with your included configuration files. To start, with version of Apache do you use? Are the include lines set up in your /etc/httpd/conf/httpd.conf file?

Do you have a properly configured and populated /etc/httpd/conf/extra/ directory?

Do you have site-level httpd.conf files in your DirectAdmin setup? You'll find them in /usr/local/directadmin/data/users/USERNAME/httpd.conf Are they properly included in your /etc/httpd;/conf/extra/directadmin-vhosts.conf file? And is that file properly included in /etc/httpd/conf/httpd.conf?

Have you tried tailing the site-specific apache error logs in /var/log/httpd/domains?

You can either take hours to go back and forth with questions, answers and suggestions here on the forums, or if getting your server back up and running quickly is important to you, then you might want to hire me or someone else. If you're going to write me about commercial work please use email (address below in my siglines) rather than sending a private message here as I don't respond as quickly to private messages.

Jeff
 
Back
Top