Tuesday, July 13, 2010

WHM + http showing failed ?

Guys,

Please check the log of the apache server like :

1. tail -f /usr/local/apache/logs/error_log
2. check the http port in /usr/local/apache/conf/httpd.conf
3. Check MaxClients in /usr/local/apache/conf/httpd.conf. Just grep it in log.

In WHM, http was displaying failed. I got the following error message in apache log.

=====
[Tue Jul 13 22:48:38 2010] [error] [client 122.181.3.130] ModSecurity: Access denied with code 501 (phase 2). Match of "rx ^((?:(?:POS|GE)T|OPTIONS|HEAD))$" against "REQUEST_METHOD" required. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "38"] [id "960032"] [msg "Method is not allowed by policy"] [severity "CRITICAL"]
=====

Please go to the 38th line and disable the rules. Then restart the apache. It'll work :) try

No comments:

Post a Comment