You have to edit your Apache's httpd.conf file if you want to create things like directories with access and authentication controls, or add features like the PHP interpreter, or handle additional languages in multi-views. There are also a few parameters that you will almost certainly want to change from their default values (as obtained from the distribution version of the httpd.conf file).
This page simply provides a few pointers into an actual httpd.conf file from a Window NT installation. It shows you some of the things that you might wish to change.
Read the documentation that comes with Apache, and with extra
components such as PHP, before making any changes to a httpd.conf file.
Remember the apachectl configtest command, it allows
you to check whether an edited httpd.conf file contains any
syntax errors.
ServerRoot,
the value of this parameter is the pathname of the directory where your
Apache is installed. Most of the parameters in this section
should have appropriate values set either from the default
or by the actual configuration process.Timeout parameters
that you might wish to adjust.
Directory directives follow. The
first prohibits access to all files other than those
explicitly enable by overriding directives. This helps
prevent curious hackers from exploring your file space.
The second sets up controls on the main htdocs
directory of your Apache. This example provides you
with a model of the directive that you should copy
when creating subdirectories with different control options.Files directive in the default
httpd.conf file probibits access to any .htacces
control files that may exist in subdirectories.HostnameLookups; if set to true, the
web server will do a reverse DNS lookup on the IP
address of each client so as to obtain the client's
hostname (for logging etc). Other directives in this
section set up log files and so forth.
ScriptAlias directive(s); the
main one identifies the cgi-bin directory with
the CGI scripts.AddLanguage directives that
match standard language codes (as used in browsers)
to file extensions.AddType and AddHandler
(and later Action)
directives. These are needed to add things like PHP
interpretation, processing of server side includes,
recognition of scripts in directories other than the
cgi-bin directory. You will need to make some
changes here to enable PHP; follow the instructions
at the
PHP site.Location
directives that allow access to the server status and
server info reports. These will be commented out.
You can enable them, and fill in the missing domain data
of IP address.