[/usr/local/apache/htdocs]# service httpd status
Not Acceptable
An appropriate representation of the requested resource
/whm-server-status could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.
solution
=======
check /usr/local/apache/logs/error_log
it will an error related to mod securtiy,
ModSecurity: Access denied with code 406 (phase 2). Match of "rx ^apache.*perl" against "REQUEST_HEADERS:User-Agent" required. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "58"] [id "1234123429"] [msg "Request Indicates an automated program explored the site"] [severity "NOTICE"] [hostname "localhost"] [uri "/whm-server-status"] [unique_id "UqQ875BMiIUAADoOG6IAAAAC"]
white list the rule globally in modsec2.user.conf
If you have cmc installed with cpanel then you can do it graphically.Otherwise you will have to do it in terminal and restart apache service.
Not Acceptable
An appropriate representation of the requested resource
/whm-server-status could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.
solution
=======
check /usr/local/apache/logs/error_log
it will an error related to mod securtiy,
ModSecurity: Access denied with code 406 (phase 2). Match of "rx ^apache.*perl" against "REQUEST_HEADERS:User-Agent" required. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "58"] [id "1234123429"] [msg "Request Indicates an automated program explored the site"] [severity "NOTICE"] [hostname "localhost"] [uri "/whm-server-status"] [unique_id "UqQ875BMiIUAADoOG6IAAAAC"]
white list the rule globally in modsec2.user.conf
If you have cmc installed with cpanel then you can do it graphically.Otherwise you will have to do it in terminal and restart apache service.
Hello There,
ReplyDeleteGreat piece on service httpd status -gives error, I’m a fan of the ‘flowery’ style Looking forward to more long form articles ??
I'm not a very good user of Linux, but i know the basics comands to play with the configurations. But i have a problem. I'm actualy working in a Distro using LFS (Linux From Scratch) and i want to build the system on version 7.4, but is dificult for me make this without some instructions more resumed and more simplificated, so I can't be able to understand the book. So please, can someone help me ???
Thanks a lot. This was a perfect step-by-step guide. Don’t think it could have been done better.
Thanks and Regards
Preethi.