Проект переехал на новый домен!  [[ перейти ]]

#корневой каталог сервера, пути для других файлов 
#конфигурации устанавливаются относительно этого каталога
ServerRoot "/usr/local"



#LockFile /var/log/accept.lock





#используемый сервером для связи между 
#порожденными процессами и родительским
ScoreBoardFile /var/run/httpd_runtime_status




#идентификатор процесса daemon
PidFile /var/run/httpd.pid


#общий таймаут
Timeout 300
#on/off обслуживание запросов
KeepAlive On
#max-кол.запросов обрабатываемых apache одновременно(0 - не обслуживать)
MaxKeepAliveRequests 10
#Таймаут перед завершением соединения
KeepAliveTimeout 15

#######################
#Модули управления процессами (MPM)

# prefork MPM

StartServers         5
MinSpareServers      5
MaxSpareServers     10
MaxClients         150
MaxRequestsPerChild  0


# worker MPM

StartServers         2
MaxClients         150
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0


# perchild MPM

NumServers           5
StartThreads         5
MinSpareThreads      5
MaxSpareThreads     10
MaxThreadsPerChild  20
MaxRequestsPerChild  0


# WinNT MPM

ThreadsPerChild 250
MaxRequestsPerChild  0


# BeOS MPM

StartThreads               10
MaxClients                 50
MaxRequestsPerThread       10000
    

# NetWare MPM

ThreadStackSize      65536
StartThreads           250
MinSpareThreads         25
MaxSpareThreads        250
MaxThreads            1000
MaxRequestsPerChild      0
MaxMemFree             100


# OS/2 MPM

StartServers           2
MinSpareThreads        5
MaxSpareThreads       10
MaxRequestsPerChild    0


#######################


#на каких интерйейсах слушает запросы
#можно жёстко привязать 192.168.0.1:80
Listen 80

########################################################################
# Динамически прогружаемые модули (httpd -l выдаст статические модули)
# записываеться всё по принципу LoadModule foo_module modules/mod_foo.so
LoadModule access_module libexec/apache2/mod_access.so
LoadModule auth_module libexec/apache2/mod_auth.so
LoadModule auth_anon_module libexec/apache2/mod_auth_anon.so
LoadModule auth_dbm_module libexec/apache2/mod_auth_dbm.so
#LoadModule auth_digest_module libexec/apache2/mod_auth_digest.so
#LoadModule file_cache_module libexec/apache2/mod_file_cache.so
LoadModule charset_lite_module libexec/apache2/mod_charset_lite.so
#LoadModule cache_module libexec/apache2/mod_cache.so
#LoadModule disk_cache_module libexec/apache2/mod_disk_cache.so
LoadModule include_module libexec/apache2/mod_include.so
LoadModule deflate_module libexec/apache2/mod_deflate.so
LoadModule log_config_module libexec/apache2/mod_log_config.so
LoadModule logio_module libexec/apache2/mod_logio.so
LoadModule env_module libexec/apache2/mod_env.so
LoadModule mime_magic_module libexec/apache2/mod_mime_magic.so
LoadModule cern_meta_module libexec/apache2/mod_cern_meta.so
LoadModule expires_module libexec/apache2/mod_expires.so
LoadModule headers_module libexec/apache2/mod_headers.so
LoadModule usertrack_module libexec/apache2/mod_usertrack.so
LoadModule unique_id_module libexec/apache2/mod_unique_id.so
LoadModule setenvif_module libexec/apache2/mod_setenvif.so
#Модуль поддержки SSL

LoadModule ssl_module libexec/apache2/mod_ssl.so

LoadModule mime_module libexec/apache2/mod_mime.so
#LoadModule dav_module libexec/apache2/mod_dav.so
LoadModule status_module libexec/apache2/mod_status.so
LoadModule autoindex_module libexec/apache2/mod_autoindex.so
LoadModule asis_module libexec/apache2/mod_asis.so
LoadModule info_module libexec/apache2/mod_info.so
#Модуль обработки cgi-файлов
LoadModule cgi_module libexec/apache2/mod_cgi.so
#LoadModule dav_fs_module libexec/apache2/mod_dav_fs.so
#модуль для поддержки virtual'ных host'ов
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
LoadModule negotiation_module libexec/apache2/mod_negotiation.so
LoadModule dir_module libexec/apache2/mod_dir.so
LoadModule imap_module libexec/apache2/mod_imap.so
LoadModule actions_module libexec/apache2/mod_actions.so
LoadModule speling_module libexec/apache2/mod_speling.so
LoadModule userdir_module libexec/apache2/mod_userdir.so
#модуль для поддержки alias'ов
LoadModule alias_module libexec/apache2/mod_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
#модуль для поддержки php
LoadModule php5_module        libexec/apache2/libphp5.so
########################################################################

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

###############################################################


# пользователь и группа под которой сервер отвечает на запросы
User www
Group www


###############################################################

#e-mail для отчётов
ServerAdmin admin@chelny.fortd.ru

#устанавливает hostname сервера
ServerName relay.fortd.ru

#Если выключено то имя хоста и порт задаёт клиент,
#иначе если включено сервер использует директиву ServerName
UseCanonicalName Off

#######################################################################
#каталог, из которого httpd берёт файлы
DocumentRoot "/usr/local/www/data"

#используется, чтобы включить группу директив, которые необходимо 
#применить только к указанному каталогу и его подкаталогам (здесь к /)

    AllowOverride All
    Order Deny,Allow
    Deny from all 

#######################################################################

#######################################################################
#описываем каталог /usr/local/www


#None - отключить всё
#All - все опции кроме MultiViews. 
#ExecCGI - разрешается выполнение сценариев CGI. 
#FollowSymLinks - сервер будет следовать за символическими связями в этом каталоге. 
#Includes - SSI разрешаются. 
#IncludesNOEXEC - SSI разрешается, но команда #exec и #include CGI-скриптов заблокированны. 
#Indexes - если запрошенный URL соответствует каталогу, и в этом катлоге нет ничего\
#... например Index.html, то сервер возвратит форматированную распечатку содерщания каталога. 
#MultiViews - Content negotiated MultiViews допускаются. 
#SymLinksIfOwnerMatch - сервер будет следовать только тем символическим связям, для которых 
#целевой файл или каталог имеют тот же идентификатор пользователя что и связь.
    Options Indexes FollowSymLinks

#None, т.е. чтобы сервер не читал файл .htaccess. 
#All - сервер будет допускать все директивы .htaccess файла. Возможны следующие одно или несколько значений: 
#AuthConfig - допускает использование директив разрешения (AuthDBMGroupFile, AuthDBMUserFile, AuthGroupFile, AuthName, AuthType, AuthUserFile, require, и т.д..). 
#FileInfo - допускает использование директив, управляющих типами документа (AddEncoding, AddLanguage, AddType, DefaultType, ErrorDocument, LanguagePriority, и т.д..). 
#Indexes - управление индексацией каталога(AddDescription, AddIcon, AddIconByEncoding, AddIconByType, DefaultIcon, DirectoryIndex, FancyIndexing, HeaderName, IndexIgnore, IndexOptions, ReadmeName, и т.д..). 
#Limit - управления доступом (allow, deny и order). 
#Options - cпецифические особенностяи каталога (Options и XBitHack). 
    AllowOverride None

#Контролирует кто может добраться до материала на сервере
#Разрешение всем всё.
    Order allow,deny
    Allow from all


########################################################################

#######################################################################################################################################
#Описание модуля userdir

UserDir public_html

#Юзеры для которых будут созданы каталог описаный ниже
#Можно задать и жёстко (UserDir /www/public) но это будет один общий, а так получается что у каждого свой
UserDir disabled root toor daemon operator bin tty kmem games news man sshd bind proxy _pflogd _dhcp uucp pop www nobody mailnull smmsp 

#общий вид каталога у юзеров в домашнией директории

    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    
        Order allow,deny
        Allow from all
    
    
        Order deny,allow
        Deny from all
    



#######################################################################################################################################

#Устанавливает тип файлов которые будут запщены из директории сайта
DirectoryIndex index.html index.html.var index.php

#Файл доступа с описанием директив, с.т. AllowOverride
#AccessFileName .htaccess

#Если файл начинаеться с .ht тогда...

    Order allow,deny
    Deny from all


#Конфиг с типами файлов которые знает как обработать и использует сервер
TypesConfig etc/apache2/mime.types

#Если сервер получает запрос на документ mime-тип которого не определен
#используеться эта директива
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#

    MIMEMagicFile etc/apache2/magic


#Подключает поиск в DNS, чтобы имена регистрировались в log
#т.е., www.apache.org (on) или 204.62.129.132 (off).
#Но не рекомендуется ставить on на часто посещаемые, так 
#как доступ к поисковым таблицам DNS длителен по времени
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.0/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used  to deliver files (assuming that the OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.0/mod/core.html#enablesendfile
#
#EnableSendfile off

#Лог-файл ошибок (в виртуальных хостах могут быть свои)
ErrorLog /var/log/httpd-error.log

#Уровень ошибок: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug

#Вид и формат лога CustomLog, см. ниже
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

# You need to enable mod_logio.c to use %I and %O
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a 
# container, they will be logged here.  Contrariwise, if you *do*
# define per- access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog /var/log/httpd-access.log common

#
# If you would like to have agent and referer logfiles, uncomment the
# following directives.
#
#CustomLog /var/log/httpd-referer.log referer
#CustomLog /var/log/httpd-agent.log agent

#
# If you prefer a single logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
CustomLog /var/log/httpd-access.log combined

#
# ServerTokens
# This directive configures what you return as the Server HTTP response
# Header. The default is 'Full' which sends information about the OS-Type
# and compiled in modules.
# Set to one of:  Full | OS | Minor | Minimal | Major | Prod
# where Full conveys the most information, and Prod the least.
#
ServerTokens Full

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory 
# listings, mod_status and mod_info output etc., but not CGI generated 
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#Алиас на директорию с иконками
Alias /icons/ "/usr/local/www/icons/"

#Описание директории

    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all


#
# This should be changed to the ServerRoot/manual/.  The alias provides
# the manual, even if you choose to move your DocumentRoot.  You may comment
# this out if you do not care for the documentation.
#
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/local/share/doc/apache2$1"


    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all

    
        SetHandler type-map
    

    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



#Алиас на каталог со скрипты cgi
ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
############################################################################################

#Сокет-файл для cgi
#Scriptsock            /var/run/cgisock


#Описание прав на каталог скриптов cgi

    AllowOverride None
    Options None
    Order allow,deny
    Allow from all

############################################################################################

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
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 is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#Задаёт язык по умолчанию.
DefaultLanguage ru

# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
#Дополнительные языки
#AddLanguage ca .ca
#AddLanguage cs .cz .cs
#AddLanguage da .dk
#AddLanguage de .de
#AddLanguage el .el
AddLanguage en .en
#AddLanguage eo .eo
#AddLanguage es .es
#AddLanguage et .et
#AddLanguage fr .fr
#AddLanguage he .he
#AddLanguage hr .hr
#AddLanguage it .it
#AddLanguage ja .ja
#AddLanguage ko .ko
#AddLanguage ltz .ltz
#AddLanguage nl .nl
#AddLanguage nn .nn
#AddLanguage no .no
#AddLanguage pl .po
#AddLanguage pt .pt
#AddLanguage pt-BR .pt-br
AddLanguage ru .ru
#AddLanguage sv .sv
#AddLanguage zh-CN .zh-cn
#AddLanguage zh-TW .zh-tw

#Приоритет
#LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
LanguagePriority ru en

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#Кодировка
#Смотри http://www.iana.org/assignments/character-sets for the
AddCharset ISO-8859-1  .iso8859-1  .latin1
AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
AddCharset ISO-8859-3  .iso8859-3  .latin3
AddCharset ISO-8859-4  .iso8859-4  .latin4
AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb
AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5        .Big5       .big5
#и для русского может использоваться:
AddCharset WINDOWS-1251 .cp-1251   .win-1251
AddCharset CP866       .cp866
AddCharset KOI8-r      .koi8-r .koi8-ru
AddCharset KOI8-ru     .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8       .utf8

#специфические ISO-стандарты
#См http://www.iana.org/assignments/character-sets
AddCharset GB2312      .gb2312 .gb 
AddCharset utf-7       .utf7
AddCharset utf-8       .utf8
AddCharset big5        .big5 .b5
AddCharset EUC-TW      .euc-tw
AddCharset EUC-JP      .euc-jp
AddCharset EUC-KR      .euc-kr
AddCharset shift_jis   .sjis

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#Для обработки php-файлов требуеться:
AddType application/x-httpd-php .php .php3 .php4 .php5


#Типы файлов разрешёные на запуск CGI-приложений
#Также требуеться добавить "ExecCGI" в "Options" в нужном каталоге
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For server-parsed imagemap files:
#
#AddHandler imap-file map

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /usr/local/www/error/include/ files and copying them to /your/include/path/, 
# even on a per-VirtualHost basis.  The default include files will display
# your Apache version number and your ServerAdmin email address regardless
# of the setting of ServerSignature.
#
# The internationalized error documents require mod_alias, mod_include
# and mod_negotiation.  To activate them, uncomment the following 30 lines.

#############################################################################
#Алиас на директорию с кодами ошибок
#получаем http://my_server/error/
    Alias /error/ "/usr/local/www/error/"

#Описание самой директории
    
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        #LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
	LanguagePriority en
        ForceLanguagePriority Prefer Fallback
    

#Можно перенаправить(redirect) запрос URL, чтобы обработать проблему/ошибку
#не стандартными средствами а чем-нибудь своим.
    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
    ErrorDocument 410 /error/HTTP_GONE.html.var
    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
############################################################################

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
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

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#

##############################################
#Подключаем конфиг ssl.conf для модуля mod_ssl

    Include /usr/local/etc/apache2/ssl.conf

##############################################

############################################################################
#Виртуальные хосты
# 
#Можно ичпользовать опцию '-S' для проверки конфигурации виртуальных хостов

#NameVirtualHost *:80

#Пример виртуального хоста:
#Этот контейнер использует запросы на обработку без имени сервера
#
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog /var/log/dummy-host.example.com-error_log
#    CustomLog /var/log/dummy-host.example.com-access_log common
#


NameVirtualHost *:80

#Имена sams,sm,admsql,joomla прописал в месном DNS

    ServerAdmin admin@chelny.fortd.ru
    DocumentRoot /usr/local/www/sm
     
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from All
     
#######################################################################
#     
#        AllowOverride FileInfo AuthConfig Limit
#        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#        
#           Order deny,allow
#           Allow from all
#        
#        
#           Order deny,allow
#           Allow from all
#        
#        Order allow,deny
#        Allow from All
#     
#######################################################################
    ServerName relay.fortd.ru
    ErrorLog /var/log/httpd-relay.error
    CustomLog /var/log/httpd-relay.access common



    ServerAdmin admin@chelny.fortd.ru
    DocumentRoot /usr/local/share/sams
    ServerName sams.fortd.ru
    ErrorLog /var/log/httpd-sams.error
    CustomLog /var/log/httpd-sams.access common



    ServerAdmin admin@chelny.fortd.ru
    DocumentRoot /usr/local/www/joomla
    ServerName joomla.fortd.ru
    ErrorLog /var/log/httpd-joomla.error
    CustomLog /var/log/httpd-joomla.access common



    ServerAdmin admin@chelny.fortd.ru
    DocumentRoot /usr/local/www/adminsql
    ServerName admsql.fortd.ru
    ErrorLog /var/log/httpd-admsql.error
    CustomLog /var/log/httpd-admsql.access common


###########################################################################

#Прочие конфигурационные файлы
Include etc/apache2/Includes/*.conf