ModSecurity adds index.php in permalinks

Started by proteus, July 19, 2017, 07:09:26 AM

Previous topic - Next topic

motanu8008

Hi guys,

sed -i 's|.*SecServerSignature "CentOS WebPanel: Protected by Mod Security".*||g' /usr/local/apache/conf.d/mod_security.conf
service httpd restart


The above code fixed my problem. Htaccess is now being written by Wordpress. Many thanks for the tip!

Dreamer

Yes, i confirm that this solves the issue with the index.php. Thank you!

Quote from: bullten on August 10, 2018, 05:01:58 AM
The issue is caused because of SecServerSignature in /usr/local/apache/conf.d/mod_security.conf

You can manually goto /usr/local/apache/conf.d/mod_security.conf and remove it

nano /usr/local/apache/conf.d/mod_security.conf

Find

SecServerSignature "CentOS WebPanel: Protected by Mod Security"

remove the above line and then restart apache

service httpd restart

Or else you can run

sed -i 's|.*SecServerSignature.*||g' /usr/local/apache/conf.d/mod_security.conf
service httpd restart