Apache - Important settings in httpd.conf
To make server-side-includes and CGI scripts work on Apache (which by
default, they don't seem to), be sure to check the following settings
in httpd.conf. If you're running virtual servers, be sure to
check whether you need similar settings for each virtual server (IIRC,
there are two places that you need to check/modify when dealing with
# This may
also be "None", "All", or any combination of "Indexes",
"FollowSymLinks", "ExecCGI", or "MultiViews".
# Note that
"MultiViews" must be named *explicitly* --- "Options All"
give it to you.
Options Includes Indexes FollowSymLinks MultiViews ExecCGI
# To use
server-parsed HTML files
DirectoryIndex: Name of the file or files to use as a pre-written HTML
index. Separate multiple entries with spaces.
DirectoryIndex index.shtml index.php index.html
Enable CGI scripts:
ScriptAlias: This controls which directories contain server scripts.
ScriptAliases are essentially the same as Aliases, except that
in the realname directory are treated as applications and
# run by the
server when requested rather than as documents sent to the client.
# The same
rules about trailing "/" apply to ScriptAlias directives as to
ScriptAlias /cgi-bin/ "/opt/apache/cgi-bin/"
"/opt/apache/cgi-bin" should be changed to whatever your ScriptAliased
directory exists, if you have that configured.
Allow from all
# To use CGI