################################################################################
### Section 1: Global Environment

ServerType standalone
ServerRoot "w:/usr/apache"
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_status

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

MaxRequestsPerChild 0
ThreadsPerChild 50

LoadModule status_module modules/ApacheModuleStatus.dll
LoadModule usertrack_module modules/ApacheModuleUserTrack.dll

ExtendedStatus On



################################################################################
### Section 2: 'Main' server configuration
Port 80
ServerAdmin mail@djna.fsnet.co.uk
ServerName 127.0.0.1
UseCanonicalName On
HostnameLookups Off
ServerSignature EMail


DirectoryIndex index.html default.html index.htm default.htm


DocumentRoot "w:/web/base"
UserDir "w:/web/users/"
<Directory />
    Options All
    AllowOverride None
</Directory>
<Directory "w:/web/base">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>


ScriptAlias /cgi-bin/ "w:/web/cgi-bin/"
<Directory "w:/web/cgi-bin">
    AllowOverride None
    Options None
</Directory>

ScriptAlias /php3/ "w:/usr/php3/" 
AddType application/x-httpd-php3 .php3
Action application/x-httpd-php3 "/php3/php.exe" 
<Directory "w:/usr/php3">
    AllowOverride None
    Options None
</Directory>
<Directory /php3/>
    Options None
    AllowOverride None
    Order deny,allow
    Allow from none
</Directory>

ScriptAlias /php4/ "w:/usr/php4/" 
AddType application/x-httpd-php4 .php4 .php
Action application/x-httpd-php4 "/php4/php.exe" 
<Directory "w:/usr/php4">
    AllowOverride None
    Options None
</Directory>
<Directory /php4/>
    Options None
    AllowOverride None
    Order deny,allow
    Allow from none
</Directory>

AddHandler cgi-script .cgi .pl .plx

AddType text/html .shtml
AddHandler server-parsed .shtml

TypesConfig conf/mime.types
DefaultType text/plain


AccessFileName .htaccess
<Files .htaccess>
    Order allow,deny
    Deny from all
</Files>


ErrorLog logs/error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

#CustomLog logs/access.log common
#CustomLog logs/referer.log referer
#CustomLog logs/agent.log agent
CustomLog logs/access.log combined


Alias /icons/ "w:/usr/apache/icons/"

IndexOptions FancyIndexing
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

AddDescription "GZIP compressed document" .gz
AddDescription "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz
AddDescription "Standard HTML file" .htm .html
AddDescription "SSI (Server Side Includes) HTML file" .shtm .shtml .ssi
AddDescription "PHP (Pre Hypertext Processor) HTML file" .php .php3 ..php4
AddDescription "CGI (Computer gateway Interface) file" .cgi
AddDescription "Perl Script file" .pl .plx
AddDescription "Image File" .jpg .jpeg .gif .bmp .tif .tiff .png
AddDescription "Text File" .txt .text .doc
AddDescription "Cascade Style Sheet" .css

ReadmeName README
HeaderName HEADER

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz

AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage it .it
AddLanguage pt .pt
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz

LanguagePriority en da nl et fr de el it pt ltz ca es sv


AddType application/x-tar .tgz

#AddHandler send-as-is asis
#AddHandler imap-file map
#AddHandler type-map var

# Customizable error response (Apache style))                
#  these come in three flavors
#
#    1) plain text
#ErrorDocument 500 "The server made a boo boo.
#  n.b.  the (") marks it as text, it does not get output
#
#    2) local redirects
#ErrorDocument 404 /missing.html
#  to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
#  N.B.: You can redirect to a script or a document using server-side-includes.
#
#    3) external redirects
#ErrorDocument 402 http://some.other_server.com/subscription_info.html
#  N.B.: Many of the environment variables associated with the original
#  request will *not* be available to such a script.

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from all
</Location>


################################################################################
### Section 3: Virtual Hosts
#NameVirtualHost 12.34.56.78:80
#NameVirtualHost 12.34.56.78

#<VirtualHost ip.address.of.host.some_domain.com>
#    ServerAdmin webmaster@host.some_domain.com
#    DocumentRoot /www/docs/host.some_domain.com
#    ServerName host.some_domain.com
#    ErrorLog logs/host.some_domain.com-error_log
#    CustomLog logs/host.some_domain.com-access_log common
#</VirtualHost>

#<VirtualHost _default_:*>
#</VirtualHost>