ServerAdmin root@localhost
ServerName localhost
-# Include other modules and packages config.
-Include conf.d/*.conf
-# Include webapps config
-Include webapps.d/*.conf
-
###
### IP Address/Port
###
# These lines here are for packages which still use apxs to activate module.
# LoadModule access_module modules/mod_access.so
# AddModule mod_foo.c
+
+# Include other modules and packages config.
+Include conf.d/*.conf
+# Include webapps config
+Include webapps.d/*.conf
+
+# ScriptAlias: This controls which directories contain server scripts.
+<IfModule mod_alias.c>
+ ScriptAlias /cgi-bin/ "/home/services/apache/cgi-bin/"
+
+ <Directory "/home/services/apache/cgi-bin">
+ AllowOverride None
+ Options None
+ Order allow,deny
+ Allow from all
+ </Directory>
+</IfModule>
allow from 127.0.0.1
</Directory>
-#
-# ScriptAlias: This controls which directories contain server scripts.
-# ScriptAliases are essentially the same as Aliases, except that
-# documents 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
-# Alias.
-#
-ScriptAlias /cgi-bin/ "/home/services/apache/cgi-bin/"
-
-#
-# "/home/services/apache/cgi-bin" should be changed to whatever your
-# ScriptAliased CGI directory exists, if you have that configured.
-#
-<Directory "/home/services/apache/cgi-bin">
- AllowOverride None
- Options None
- Order allow,deny
- Allow from all
-</Directory>
-
-# Redirect allows you to tell clients about documents which used to exist in
-# your server's namespace, but do not anymore. This allows you to tell the
-# clients where to look for the relocated document.
-# Format: Redirect old-URI new-URL
</IfModule>