#
# Section 1: Глобальная среда
ServerRoot "C:/Server/Apache/Apache2"
#
PidFile logs/httpd.pid
#
Timeout 300
#
KeepAlive On
#
MaxKeepAliveRequests 100
#
KeepAliveTimeout 15
##
## Server-Pool Size Regulation (MPM specific)
## 
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild  0
</IfModule>
#
Listen 80
#
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule userdir_module modules/mod_userdir.so
#
#ExtendedStatus On
### Section 2: Конфигурация "главного" (дефолтного) сервера
#
ServerAdmin AngelBelok@gmail.com
#
ServerName localhost:80
#
UseCanonicalName Off
#
DocumentRoot "C:/Sites/home/localhost/www"
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
#
<Directory "C:/Sites">
	Options Indexes Includes
	AllowOverride All
	Order allow,deny
	Allow from all
 </Directory>
#
UserDir "My Documents/My Website"
DirectoryIndex index.php index.html index.html.var
#
AccessFileName .htaccess
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>
#
TypesConfig conf/mime.types
#
DefaultType text/plain
#
<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>
#
HostnameLookups Off
#
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
#
ServerTokens Full
#
ServerSignature On
#
Alias /icons/ "C:/Server/Apache/Apache2/icons/"
<Directory "C:/Server/Apache/Apache2/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
#
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "C:/Server/Apache/Apache2/manual$1"
<Directory "C:/Server/Apache/Apache2/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
    <Files *.html>
        SetHandler type-map
    </Files>
    SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1
    RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2
</Directory>
#
ScriptAlias /cgi/ "C:/Sites/home/localhost/cgi/"
ScriptAlias /cgi-bin/ "C:/Sites/home/localhost/cgi/"
<Directory "C:/Sites/home/localhost/cgi">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
#
IndexOptions FancyIndexing VersionSort
#
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
ReadmeName README.html
HeaderName HEADER.html
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
#
# Настройка языков и кодировок
AddLanguage en .en
AddLanguage ru .ru
#
LanguagePriority en ru
#
#ForceLanguagePriority Prefer Fallback
AddDefaultCharset WINDOWS-1251
AddCharset WINDOWS-1251 .cp-1251 .win-1251
#
AddHandler cgi-script .cgi .bat .exe
#AddHandler type-map var
#
AddType application/x-httpd-php php phtml
ScriptAlias /_php_/ "C:/Server/PHP/"
#
Action application/x-httpd-php "/_php_/php.exe"
# Настройка SSI
AddType text/html .shtml
AddHandler server-parsed .shtml .html .htm
#
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
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
#
<IfModule mod_ssl.c>
    Include conf/ssl.conf
</IfModule>
### Section 3: Virtual Hosts
# Виртуальные хосты
#
NameVirtualHost 127.0.0.1
#localhost
<VirtualHost localhost>
ServerAdmin AngelBelok@gmail.com
ServerName localhost
DocumentRoot "C:/Sites/home/localhost/www"
ScriptAlias /cgi/ "C:/Sites/home/localhost/cgi/"
ErrorLog C:/Sites/home/localhost/error.log
CustomLog C:/Sites/home/localhost/access.log common
</VirtualHost>
#neebet
<VirtualHost neebet>
ServerAdmin me@neebet
ServerName neebet
DocumentRoot "C:/Sites/home/neebet/www"
ScriptAlias /cgi/ "C:/Sites/home/neebet/cgi/"
ErrorLog C:/Sites/home/neebet/error.log
CustomLog C:/Sites/home/neebet/access.log common
</VirtualHost>
#mysite
<VirtualHost mysite>
ServerAdmin me@mysite
ServerName mysite
DocumentRoot "C:/Sites/home/mysite/www"
ScriptAlias /cgi/ "C:/Sites/home/mysite/cgi/"
ErrorLog C:/Sites/home/mysite/error.log
CustomLog C:/Sites/home/mysite/access.log common
</VirtualHost>