From: Joshua Slive When running CGI scripts, the method Apache uses to find
the interpreter for the script is configurable using the
- Since it is often difficult to manage files with names
like ScriptInterpreterSource
+ ScriptInterpreterSource
directive..htaccess
under windows, you may find it
useful to change the name of this configuration file using
- the AccessFilename
+ the AccessFilename
directive.
In these cases, the proper ServerRoot
should be set in the configuration file.
In these cases, the proper ServerRoot
should be set in the configuration file.
If you don't specify a configuration file name with -f
or
-n
, Apache will use the file name compiled into the server,
usually "conf/httpd.conf
". Invoking Apache with the
-V
switch will display this value labeled as
SERVER_CONFIG_FILE
. Apache
- will then determine its ServerRoot
by trying the following, in
+ will then determine its ServerRoot
by trying the following, in
this order:
The value of this key is the ServerRoot
directory, containing the conf
+
The value of this key is the ServerRoot
directory, containing the conf
directory. When Apache starts it will read the httpd.conf
file from this directory. If this file contains a
- ServerRoot
directive which
+ ServerRoot
directive which
is different from the directory obtained from the registry key above,
Apache will forget the registry key and use the directory from the
configuration file. If you copy the Apache directory or configuration
files to a new location it is vital that you update the
- ServerRoot
directory
+ ServerRoot
directory
in the httpd.conf
file to the new location.
To run Apache from the command line as a console