Wednesday, 23 December 2009

How to enable SSI includes by using .htaccess

Including executables are no longer allowed by default apache configuration. IncludesNOEXEC is now the default, SSI includes are now disabled by default. This is done to prevent server abuse / insure server security. We recommend using PHP coding wherever possible. If using cgi includes is ABSOLUTELY necessary you may enable the includes via :


1. Create/edit the .htaccess file (you may find it within public_html folder) to permit the execution of CGI programs with the following options:


2. Enter the following:

Options +Includes +ExecCGI

AddHandler cgi-script .cgi .pl

OR

AddType text/html .shtml

AddHandler server-parsed .shtml

Options Indexes FollowSymLinks Includes


3. Save .htaccess file.

Including executables are no longer allowed by default apache configuration. IncludesNOEXEC is now the default, SSI includes are now disabled by default. This is done to prevent server abuse / insure server security. We recommend using PHP coding wherever possible. If using cgi includes is ABSOLUTELY necessary you may enable the includes via :
1. Create/edit the .htaccess file (you may find it within public_html folder) to permit the execution of CGI programs with the following options:2. Enter the following:
Options +Includes +ExecCGIAddHandler cgi-script .cgi .pl
OR
AddType text/html .shtmlAddHandler server-parsed .shtmlOptions Indexes FollowSymLinks Includes
3. Save .htaccess file.

No comments:

Post a Comment