Few important Apache httpd.conf Directive

Want to start learning Apache configuration settings. Start with these settings:

Server root. All files conf, htdocs, etc under it.
ServerRoot "C:/Program Files/Apache Group/Apache2"

Script timeout:
Timeout 300

Keep connection alive time:
KeepAlive On

Max. request accepted keep alive request:
MaxKeepAliveRequests 100

Keep Alive timeout:
KeepAliveTimeout 15

Registered DNS name, or IP address here
ServerName localhost:80

DocumentRoot: The directory out of which you will serve your documents.
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"

Set rights available to directory through server. Here is the d
<Directory "dir-path-here">


Make .htaccess file work for you.
AllowOverride All
It can be "All" or "None". It can be any combination of these Options FileInfo AughConfig Limit.

Set the file that Apache will serve if a directory is requested. This will hide you directory structure. Default value is this:
DirectoryIndex index.html index.html.var
Change it to:
DirectoryIndex index.html index.php index.html.var

Control files access based on the name and extension.
<Files ~ "^\.ht">
Order allow,deny
Deny from all

All file names starts with ".ht" will be denied by Apache.

Default charset for all the pages serverd by your server.
AddDefaultCharset ISO-8859-1

Customize error response send by apache.
ErrorDocument 403 /forbidden.html

Set multiple site host on a single server:

<VirtualHost >