##
## httpd.conf -- Apache HTTP server configuration file
##
### Section 1: Global Environment
#
ServerType standalone
ServerRoot "/usr/local/apache"
LockFile /var/run/httpd.lock
PidFile //var/run/httpd.pid
#ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard
#ResourceConfig conf/srm.conf
#AccessConfig conf/access.conf
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 7
MaxSpareServers 13
StartServers 7
MaxClients 200
MaxRequestsPerChild 100
#Listen 3000
#Listen www.synoptick.com:80
BindAddress *
#
# Dynamic Shared Object (DSO) Support
#
LoadModule mmap_static_module /usr/libexec/libapache/mod_mmap_static.so
LoadModule vhost_alias_module /usr/libexec/libapache/mod_vhost_alias.so
LoadModule env_module /usr/libexec/libapache/mod_env.so
LoadModule define_module /usr/libexec/libapache/mod_define.so
LoadModule config_log_module /usr/libexec/libapache/mod_log_config.so
LoadModule agent_log_module /usr/libexec/libapache/mod_log_agent.so
LoadModule referer_log_module /usr/libexec/libapache/mod_log_referer.so
LoadModule mime_magic_module /usr/libexec/libapache/mod_mime_magic.so
LoadModule mime_module /usr/libexec/libapache/mod_mime.so
LoadModule negotiation_module /usr/libexec/libapache/mod_negotiation.so
LoadModule status_module /usr/libexec/libapache/mod_status.so
LoadModule info_module /usr/libexec/libapache/mod_info.so
LoadModule includes_module /usr/libexec/libapache/mod_include.so
LoadModule autoindex_module /usr/libexec/libapache/mod_autoindex.so
LoadModule dir_module /usr/libexec/libapache/mod_dir.so
LoadModule cgi_module /usr/libexec/libapache/mod_cgi.so
#LoadModule asis_module /usr/libexec/libapache/mod_asis.so
LoadModule imap_module /usr/libexec/libapache/mod_imap.so
LoadModule action_module /usr/libexec/libapache/mod_actions.so
LoadModule speling_module /usr/libexec/libapache/mod_speling.so
LoadModule userdir_module /usr/libexec/libapache/mod_userdir.so
LoadModule alias_module /usr/libexec/libapache/mod_alias.so
LoadModule rewrite_module /usr/libexec/libapache/mod_rewrite.so
LoadModule access_module /usr/libexec/libapache/mod_access.so
LoadModule auth_module /usr/libexec/libapache/mod_auth.so
LoadModule anon_auth_module /usr/libexec/libapache/mod_auth_anon.so
LoadModule dbm_auth_module /usr/libexec/libapache/mod_auth_dbm.so
LoadModule db_auth_module /usr/libexec/libapache/mod_auth_db.so
LoadModule digest_module /usr/libexec/libapache/mod_digest.so
LoadModule proxy_module /usr/libexec/libapache/libproxy.so
LoadModule cern_meta_module /usr/libexec/libapache/mod_cern_meta.so
LoadModule expires_module /usr/libexec/libapache/mod_expires.so
LoadModule headers_module /usr/libexec/libapache/mod_headers.so
LoadModule usertrack_module /usr/libexec/libapache/mod_usertrack.so
#LoadModule example_module /usr/libexec/libapache/mod_example.so
LoadModule unique_id_module /usr/libexec/libapache/mod_unique_id.so
LoadModule setenvif_module /usr/libexec/libapache/mod_setenvif.so
LoadModule php4_module /usr/libexec/libapache/libphp4.so
<IfDefine SSL>
LoadModule ssl_module /usr/libexec/libapache/libssl.so
</ifDefine>
LoadModule perl_module /usr/libexec/libapache/libperl.so
ClearModuleList
AddModule mod_mmap_static.c
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_define.c
AddModule mod_log_config.c
AddModule mod_log_agent.c
AddModule mod_log_referer.c
AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_status.c
AddModule mod_info.c
AddModule mod_include.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_cgi.c
#AddModule mod_asis.c
AddModule mod_imap.c
AddModule mod_actions.c
AddModule mod_speling.c
AddModule mod_userdir.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_auth_anon.c
AddModule mod_auth_dbm.c
AddModule mod_auth_db.c
AddModule mod_digest.c
AddModule mod_proxy.c
AddModule mod_cern_meta.c
AddModule mod_expires.c
AddModule mod_headers.c
AddModule mod_usertrack.c
#AddModule mod_example.c
AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
AddModule mod_gzip.c
AddModule mod_php4.c
AddModule mod_perl.c
ExtendedStatus On
### Section 2: 'Main' server configuration
#
#
Port 80
<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>
User apache
Group wheel
ServerAdmin admin@synoptick.com
ServerName tropic.synoptick.com
DocumentRoot "/web/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/web/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir webdir
</IfModule>
<Directory /home/*/webdir>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi index.pl
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
CacheNegotiatedDocs
UseCanonicalName Off
<IfModule mod_mime.c>
TypesConfig /etc/httpd/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /etc/httpd/magic
</IfModule>
HostnameLookups On
ErrorLog /var/log/httpd/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
SetEnvIf Request_URI "\.ida" nolog
SetEnvIf Request_URI "\.exe$" nolog
SetEnvIf Request_URI "\.(gif|css)$" nolog
CustomLog /var/log/httpd/access_log common env=nolog
CustomLog /var/log/httpd/referer_log referer env=!nolog
CustomLog /var/log/httpd/agent_log agent
CustomLog /var/log/httpd/access_log combined env=!nolog
ServerSignature On
#
# EBCDICConvertByType On=InOut text/* message/* multipart/*
# EBCDICConvertByType On=In application/x-www-form-urlencoded
# EBCDICConvertByType On=InOut application/postscript model/vrml
# EBCDICConvertByType Off=InOut */*
<IfModule mod_alias.c>
Alias /icons/ "/web/icons/"
<Directory "/web/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /manual/ "/web/manual/"
<Directory "/web/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/web/cgi-bin/"
<Directory "/web/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
alias /perl/ /web/perl/
<Location /perl>
AllowOverride None
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</location>
</IfModule>
<IfModule mod_autoindex.c>
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 "tar archive" .tar
AddDescription "GZIP compressed tar archive" .tgz
AddDescription "GZIP compressed document" .gz
AddDescription "ZIP compressed document" .zip
AddDescription "rar compressed document" .rar
AddDescription "Image Format GIF" .gif
AddDescription "Image Format JPEG" .jpg .jpeg
AddDescription "Image Format PNG" .png
AddDescription "Video Format MPEG" .mpeg .mpg
AddDescription "Video Format QUICKTIME" .mov
AddDescription "Document Format PDF" .pdf
AddDescription "Document Format texte" .txt
AddDescription "Document Fomrat Microsoft" .doc
AddDescription "Html format" .htm .html
AddDescription "Script PHP" .php .php3 .php4
AddDescription "Source script Php" .phps
ReadmeName README
HeaderName HEADER
#
# 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
</IfModule>
<IfModule mod_mime.c>
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 he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage zh-tw .tw
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>
AddType application/x-tar .tgz
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
# To use CGI scripts:
#
#AddHandler cgi-script .cgi
AddType text/html .shtml
AddHandler server-parsed .shtml
#
# Uncomment the following line to enable Apache's send-asis HTTP file
# feature
#
#AddHandler send-as-is asis
#
# If you wish to use server-parsed imagemap files, use
#
#AddHandler imap-file map
#
# To enable type maps, you might want to use
#
#AddHandler type-map var
</IfModule>
# End of document types.
#
#MetaDir .web
#
# MetaSuffix: specifies the file name suffix for the file containing the
# meta information.
#
#MetaSuffix .meta
ErrorDocument 501 /errorsite/error501.php
ErrorDocument 500 /errorsite/error500.php
ErrorDocument 404 /errorsite/error404.php
ErrorDocument 402 /errorsite/error402.php
#
# Customize behaviour based on the browser
#
<IfModule mod_setenvif.c>
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
</IfModule>
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from *.synoptick.com
</Location>
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from *.synoptick.com
</Location>
### Section 3: Virtual Hosts
#
#
#
NameVirtualHost 192.168.1.2
<VirtualHost 192.168.1.2>
ServerAdmin webmaster@synoptick.com
DocumentRoot /web/site/sitesynoptick/
ServerName www.synoptick.com
</VirtualHost>
<VirtualHost 192.168.1.2>
ServerAdmin cours@synoptick.com
DocumentRoot /web/site/cours/
ServerName cours.synoptick.com
ErrorLog /var/log/httpd/cours/error_log
CustomLog /var/log/httpd/cours/access_log common env=nolog
CustomLog /var/log/httpd/cours/referer_log referer env=!nolog
CustomLog /var/log/httpd/cours/agent_log agent
CustomLog /var/log/httpd/cours/access_log combined env=!nolog
</VirtualHost>
<VirtualHost 192.168.1.2>
ServerAdmin www@synoptick.com
VirtualDocumentRoot /web/heb/%2+/%1/%1.1/%1.2/
ServerName www.synoptick.com
ServerAlias *.synoptick.com </VirtualHost>
#<VirtualHost _default_:*>
#</VirtualHost>
|