You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
230 lines
7.7 KiB
230 lines
7.7 KiB
## |
|
## apache.base -- Apache Base/Default Configuration |
|
## ______________________________________________________ |
|
## |
|
## PLEASE DO NOT EDIT THIS FILE!! ADJUST CONFIGURATION BY |
|
## OVERRIDING DIRECTIVES IN "apache.conf" INSTEAD, PLEASE! |
|
## ______________________________________________________ |
|
## |
|
|
|
# global server |
|
ServerType standalone |
|
ServerRoot @l_prefix@ |
|
ServerAdmin root@@l_hostname@.@l_domainname@ |
|
ServerName @l_hostname@.@l_domainname@ |
|
ServerTokens Prod |
|
User @l_npusr@ |
|
Group @l_npgrp@ |
|
Port 80 |
|
|
|
# runtime files |
|
PidFile @l_prefix@/var/apache/run/apache.pid |
|
ScoreBoardFile @l_prefix@/var/apache/run/apache.sb |
|
|
|
# server behaviour |
|
Timeout 300 |
|
KeepAlive on |
|
MaxKeepAliveRequests 100 |
|
KeepAliveTimeout 15 |
|
MinSpareServers 5 |
|
MaxSpareServers 10 |
|
StartServers 5 |
|
MaxClients 150 |
|
MaxRequestsPerChild 0 |
|
HostnameLookups off |
|
UseCanonicalName on |
|
|
|
# access logging |
|
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 @l_prefix@/var/apache/log/access.log common |
|
|
|
# error logging |
|
LogLevel warn |
|
ErrorLog @l_prefix@/var/apache/log/error.log |
|
ServerSignature on |
|
|
|
# secure root directory |
|
<Directory /> |
|
Options FollowSymLinks |
|
AllowOverride None |
|
</Directory> |
|
|
|
# configure global document root |
|
DocumentRoot @l_prefix@/share/apache/htdocs |
|
<IfModule mod_alias.c> |
|
Alias /apache-htdocs @l_prefix@/share/apache/htdocs |
|
</IfModule> |
|
<Directory "@l_prefix@/share/apache/htdocs"> |
|
Options Indexes FollowSymLinks MultiViews |
|
AllowOverride none |
|
Order allow,deny |
|
Allow from all |
|
</Directory> |
|
|
|
# default directories and files |
|
<IfModule mod_userdir.c> |
|
UserDir public_html |
|
</IfModule> |
|
<IfModule mod_dir.c> |
|
DirectoryIndex index.html |
|
</IfModule> |
|
|
|
# local configuration files |
|
AccessFileName .htaccess |
|
<Files ~ "^\.ht"> |
|
Order allow,deny |
|
Deny from all |
|
Satisfy All |
|
</Files> |
|
|
|
# global Icons and CGI directory |
|
<IfModule mod_alias.c> |
|
Alias /apache-icons @l_prefix@/share/apache/icons |
|
<Directory "@l_prefix@/share/apache/icons"> |
|
Options Indexes MultiViews |
|
AllowOverride None |
|
Order allow,deny |
|
Allow from all |
|
</Directory> |
|
ScriptAlias /openpkg-cgi "@l_prefix@/cgi" |
|
<Directory "@l_prefix@/cgi"> |
|
AllowOverride None |
|
Options None |
|
Order allow,deny |
|
Allow from all |
|
</Directory> |
|
</IfModule> |
|
|
|
# automatic CGI recognition by extension |
|
<IfModule mod_cgi.c> |
|
AddHandler cgi-script .cgi |
|
</IfModule> |
|
|
|
# automatic directory indexing |
|
<IfModule mod_autoindex.c> |
|
IndexOptions FancyIndexing |
|
ReadmeName README |
|
HeaderName HEADER |
|
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t |
|
DefaultIcon /apache-icons/unknown.gif |
|
AddIcon /apache-icons/back.gif .. |
|
AddIcon /apache-icons/dir.gif ^^DIRECTORY^^ |
|
AddIcon /apache-icons/blank.gif ^^BLANKICON^^ |
|
AddIcon /apache-icons/binary.gif .bin .exe |
|
AddIcon /apache-icons/binhex.gif .hqx |
|
AddIcon /apache-icons/tar.gif .tar |
|
AddIcon /apache-icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv |
|
AddIcon /apache-icons/compressed.gif .Z .z .tgz .gz .zip |
|
AddIcon /apache-icons/a.gif .ps .ai .eps |
|
AddIcon /apache-icons/layout.gif .html .shtml .htm .pdf |
|
AddIcon /apache-icons/text.gif .txt |
|
AddIcon /apache-icons/c.gif .c |
|
AddIcon /apache-icons/p.gif .pl .py |
|
AddIcon /apache-icons/f.gif .for |
|
AddIcon /apache-icons/dvi.gif .dvi |
|
AddIcon /apache-icons/uuencoded.gif .uu |
|
AddIcon /apache-icons/script.gif .conf .sh .shar .csh .ksh .tcl |
|
AddIcon /apache-icons/tex.gif .tex |
|
AddIcon /apache-icons/bomb.gif core |
|
AddIconByEncoding (CMP,/apache-icons/compressed.gif) x-compress x-gzip |
|
AddIconByType (TXT,/apache-icons/text.gif) text/* |
|
AddIconByType (IMG,/apache-icons/image2.gif) image/* |
|
AddIconByType (SND,/apache-icons/sound2.gif) audio/* |
|
AddIconByType (VID,/apache-icons/movie.gif) video/* |
|
</IfModule> |
|
|
|
# MIME types and content negotiation |
|
DefaultType text/plain |
|
<IfModule mod_mime.c> |
|
TypesConfig @l_prefix@/etc/apache/mime.types |
|
AddType application/x-tar .tgz |
|
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 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 .se |
|
AddLanguage cz .cz |
|
AddLanguage ru .ru |
|
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> |
|
<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> |
|
<IfModule mod_mime_magic.c> |
|
MIMEMagicFile @l_prefix@/etc/apache/mime.magic |
|
</IfModule> |
|
|
|
# browser specifics |
|
<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> |
|
|
|
# IVW access logging |
|
<IfModule mod_zmod.c> |
|
ZModSubPath /cgi-bin/ivw |
|
ZModFormat ZMODS |
|
ZModLog @l_prefix@/var/apache/log/zmod.log |
|
#ZModFileBase @l_prefix@/share/apache/htdocs/ivw/pics |
|
</IfModule> |
|
|
|
# SSL/TLS support |
|
<IfModule mod_ssl.c> |
|
SSLRandomSeed startup builtin |
|
SSLRandomSeed connect builtin |
|
SSLMutex sem |
|
SSLSessionCache shmcb:@l_prefix@/var/apache/run/ssl_scache(512000) |
|
SSLSessionCacheTimeout 300 |
|
SSLLog @l_prefix@/var/apache/log/ssl.log |
|
SSLLogLevel warn |
|
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL |
|
SetEnvIf User-Agent ".*MSIE.*" \ |
|
nokeepalive ssl-unclean-shutdown \ |
|
downgrade-1.0 force-response-1.0 |
|
<Files ~ "\.(cgi|shtml|phtml|php?)$"> |
|
SSLOptions +StdEnvVars |
|
</Files> |
|
<Directory "@l_prefix@/cgi"> |
|
SSLOptions +StdEnvVars |
|
</Directory> |
|
</IfModule> |
|
|
|
# PHP4 support |
|
<IfModule mod_php4.c> |
|
AddType application/x-httpd-php .php |
|
</IfModule> |
|
|
|
|