Turn off Server Side Includes and CGI Execution in Apache Webserver




Environment: Apache webserver

Solution :

-          Steps to turn off server side includes (mod_include)
-          And CGI execution
-          Modify the httpd.conf  or apache2.conf file in the main configuration file.
-          This can be applied to root directory or specific directory
-          Open the main configuration file and add the below details

Options -Includes -ExecCGI

Or
Options -Includes -ExecCGI
-          Restart the server. That’s it!.

4 comments: