httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Eilebrecht <Lars.Eilebre...@unix-ag.org>
Subject RFD: new .conf-dist files?
Date Tue, 05 Aug 1997 15:07:53 GMT
Hi,

some weeks ago Marc (?) mentioned that the .conf-dist files should be
cleaned up.

I made some config file sets:
  - basic       (really basic, no cgi, no fancy things)
  - advanced    (includes examples of most configuration directives)
  - proxy       (more or less like 'advanced', but with mod_proxy stuff)
  - virtualhost (config with a _default_, one name-based and one IP-based
                 server)
  - ssl         (more or less like 'proxy', but SSL directives)

You can find the files under the url:

   http://www.unix-ag.org/temp/config/

(I made the files originally for an other purpose, so ignore the german
 comments :-))

In my opionion it would be good to idea to ship some different config
file sets with Apache... or should we stay with a single set of
.conf-dist files?

I don't know how far Marc's config-cleanup is... maybe some parts from
my config files can be merged.

Anyway, here is (just for your convenience) the 'advanced' config file set:

-- [httpd.conf] --

ServerType standalone
Listen 80
User nobody
Group #-1
ServerAdmin webmaster@your.address
ServerName www.domain.tld

ServerRoot /usr/local/etc/httpd
DocumentRoot /usr/local/etc/httpd/htdocs
AccessConfig conf/access.conf
ResourceConfig conf/srm.conf

# Combined Logfile Format
#
CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""

# Common Logfile Format (plus extra Agent- und Referer-Log)
#
#CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b"
#CustomLog logs/referer_log  "%{Referer}i -> %U"
#CustomLog logs/agent_log    "%{User-agent}i"

ErrorLog logs/error_log
ScriptLog logs/script_log
#RewriteLog logs/rewrite_log
#RewriteLogLevel 1
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_status
#LockFile logs/accept.lock

Timeout 300
StartServers 5
MaxClients 150
MaxRequestsPerChild 30
MinSpareServers 5
MaxSpareServers 10
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
IdentityCheck Off
HostnameLookups Off
ContentDigest On

BrowserMatch ^Mozilla/2 nokeepalive
BrowserMatch Java/1.0 force-response-1.0
BrowserMatch JDK/1.0 force-response-1.0
BrowserMatch "RealPlayer 4.0" force-response-1.0

# mod_env examples
#
#SetEnv TEST 0815
#PassEnv LD_LIBRARY_PATH
#UnsetEnv TEST

# mod_headers examples
#
#Header add X-Comment "This is a comment."
#Header append X-Comment "I really like this."
#Header set Window-Target "_top"
#Header unset Set-Cookie

# mod_expires examples
#
#ExpiresActive On
#ExpiresByType text/html "modification 7 days"
#ExpiresByType text/plain "access 24 hours 2 minutes 4 seconds"
#ExpiresDefault "modification 14 days"


-- [access.conf] --

<Directory />
Options None
AllowOverride None
order deny,allow
deny from all
</Directory>

<Files ~ "(\.htaccess|/core|~|#|\.bak|\.BAK)$">
order deny,allow
deny from all
</Files>

<Directory /usr/local/etc/httpd/cgi-bin>
Options ExecCGI
SetHandler cgi-script
order allow,deny
allow from all
</Directory>

<Location />
Options +SymLinksIfOwnerMatch
AllowOverride None
AuthName restricted area
order allow,deny
allow from all
</Location>

<Location /error>
Options +Multiviews +Includes
</Location>

#<Location /internal>
#order deny,allow
#deny from all
#allow from your.local.ip.address
#</Location>

# mod_status
#
#<Location /internal/server-status>
#SetHandler server-status
#</Location>

# mod_info
#
#<Location /internal/server-info>
#SetHandler server-info
#</Location>

# mod_auth
#
<Location /your/protected/dir>
#AuthType Basic
#AuthName test-verzeichnis
#AuthUserFile /usr/local/etc/httpd/conf/passwd
#AuthGroupFile /usr/local/etc/httpd/conf/group
#require user joe
#</Location>

# mod_auth_dbm
#
#<Location /your/protected/dir>
#AuthType Basic
#AuthName test-verzeichnis
#AuthDBMUserFile /usr/local/etc/httpd/conf/passwd
#AuthDBMGroupFile /usr/local/etc/httpd/conf/group
#require user joe
#</Location>

# mod_auth_msql
#
#<Location /your/protected/dir>
#AuthType Basic
#AuthName test-verzeichnis
#Auth_MSQLhost localhost
#Auth_MSQLdatabase yourdatabase
#Auth_MSQLpwd_table passwd
#Auth_MSQLuid_field userid
#Auth_MSQLpwd_field password
#Auth_MSQLgrp_table group
#Auth_MSQLgrp_field groupid
#Auth_MSQL_nopasswd off
#Auth_MSQL_EncryptedPasswords on
#require user joe
#</Location>

# mod_digest
#
#<Location /your/protected/dir>
#AuthType Digest
#AuthName test-verzeichnis
#AuthDigestFile /usr/local/etc/httpd/conf/passwd
#require user joe
#</Location>

# mod_auth_anon
#
#<Location /your/protected/dir>
#AuthType Basic
#AuthName test-verzeichnis
#Anonymous anonymous guest gast "add me"
#Anonymous_LogEmail off
#Anonymous_VerifyEmail on
#Anonymous_MustGiveEmail on
#require valid-user
#</Location>


-- [srm.conf] --
Alias /icons /usr/local/etc/httpd/icons
Alias /cgi-bin /usr/local/etc/httpd/cgi-bin
UserDir public_html

#RewriteEngine On
#RewriteRule ^/icons/(.*) /usr/local/etc/httpd/icons/$1 [L]
#RewriteRule ^/cgi-bin/(.*) /usr/local/etc/httpd/cgi-bin/$1 [L]
#RewriteRule ^/~([^/]+)$ /~$1/ [R,L]
#RewriteRule ^/~([^/]+)/(.*) /usr/home/$1/public_html/$2 [L]

# mod_alias redirect examples
# 
#Redirect temp /foo/bar http://www.domain.tld/xyz
#Redirect permanent /oldstuff http://www.domain.tld/new
#Redirect seeother /veryoldstuff http://www.domain.tld/new
#Redirect gone /ancientstuff

# mod_rewrite simple examples
#
#RewriteRule ^/foo/bar(.*) /path/to/xyz$1
#RewriteRule ^/foo/bar(.*) /xyz$1 [R]
#RewriteRule ^/oldstuff(.*) /new$1 [R=permanent]
#RewriteRule ^/veryoldstuff(.*) /new$1 [R=seeother]
#RewriteRule ^/ancientstuff(.*) - [G]

DirectoryIndex index.html index.htm
IndexOptions FancyIndexing
IndexIgnore .??* *~ *# *.bak *.BAK HEADER.* README.* RCS core
ReadmeName README
HeaderName HEADER
AccessFileName .htaccess
DefaultType text/plain

# Server-Side Includes
#
#AddType text/html .shtml
#AddHandler server-parsed .html

# Handler...
#
#AddHandler cgi-script cgi
#AddHandler send-as-is asis
#AddHandler imap-file map
#AddHandler type-map var

# Action-Handler
#
#Action your-handler /cgi-bin/script
#AddHandler your-handler xyz

AddIcon (SRC,/icons/c.gif) .c .h
AddIcon (SCR,/icons/p.gif) .pl .py
AddIcon (FOR,/icons/f.gif) .for
AddIcon (UUE,/icons/uuencoded.gif) .uu
AddIcon (SCR,/icons/script.gif) .conf .config .skel .cf .mc .in .ksh Makefile
AddIcon (COR,/icons/bomb.gif) core
AddIcon (PAT,/icons/patch.gif) .patch
AddIcon (TXT,/icons/hand.right.gif) README
AddIcon (CGI,/icons/link.gif) .cgi
AddIcon (WRL,/icons/world1.gif) wrl.gz wrl.Z
AddIcon (POS,/icons/ps.gif) ps.gz ps.Z
AddIcon (DVI,/icons/dvi.gif) dvi.gz dvi.Z
AddIcon /icons/back.gif ..
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddIconByEncoding (CMP,/icons/compressed.gif) x-gzip x-compress

AddType x-world/x-vrml vrm
AddIconByType (BIN,/icons/binary.gif) application/octet-stream
AddIconByType (HQX,/icons/binhex.gif) application/mac-binhex40
AddIconByType (TAR,/icons/tar.gif) application/x-gtar application/x-tar
AddIconByType (CMP,/icons/compressed.gif) application/zip application/x-stuffit
AddIconByType (POS,/icons/ps.gif) application/postscript
AddIconByType (PDF,/icons/pdf.gif) application/pdf
AddIconByType (HTM,/icons/layout.gif) text/html
AddIconByType (DVI,/icons/dvi.gif) application/x-dvi
AddIconByType (SCR,/icons/script.gif) application/x-csh application/x-tcl application/x-shar
application/x-sh
AddIconByType (TEX,/icons/tex.gif) application/x-latex application/x-tex application/x-texinfo
AddIconByType (PPT,/icons/sphere2.gif) application/powerpoint
AddIconByType (DOC,/icons/quill.gif) application/msword
AddIconByType (RTF,/icons/text.gif) application/rtf
AddIconByType (XDR,/icons/portal.gif) application/x-director
AddIconByType (TRF,/icons/text.gif) application/x-troff application/x-troff-man application/x-troff-me
application/x-troff-ms
AddIconByType (WAI,/icons/script.gif) application/x-wais-source
AddIconByType (ICE,/icons/sound1.gif) x-conference/*
AddIconByType (WRL,/icons/world2.gif) x-world/* 
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

DefaultIcon /icons/unknown.gif

AddDescription "Hypertext document" .html .htm
AddDescription "Textfile" .txt
AddDescription "GIF image" .gif
AddDescription "JPEG image" .jpeg .jpg
AddDescription "PNG image" .png
AddDescription "Tape archive" .tar
AddDescription "ZIP archive" .zip

# Language Negotiation (ISO 639 Abkuerzungen)
#
AddLanguage aa .aa # Afar
AddLanguage ab .ab # Abkhazian
AddLanguage af .af # Afrikaans
AddLanguage am .am # Amharic
AddLanguage ar .ar # Arabic
AddLanguage as .as # Assamese
AddLanguage ay .ay # Aymara
AddLanguage az .az # Azerbaijani
AddLanguage ba .ba # Bashkir
AddLanguage be .be # Byelorussian
AddLanguage bg .bg # Bulgarian
AddLanguage bh .bh # Bihari
AddLanguage bi .bi # Bislama
AddLanguage bn .bn # Bengali; Bangla
AddLanguage bo .bo # Tibetan
AddLanguage br .br # Breton
AddLanguage ca .ca # Catalan
AddLanguage co .co # Corsican
AddLanguage cs .cs # Czech
AddLanguage cy .cy # Welsh
AddLanguage da .da # Danish
AddLanguage de .de # German
AddLanguage dz .dz # Bhutani
AddLanguage el .el # Greek
AddLanguage en .en # English
AddLanguage eo .eo # Esperanto
AddLanguage es .es # Spanish
AddLanguage et .et # Estonian
AddLanguage eu .eu # Basque
AddLanguage fa .fa # Persian
AddLanguage fi .fi # Finnish
AddLanguage fj .fj # Fiji
AddLanguage fo .fo # Faeroese
AddLanguage fr .fr # French
AddLanguage fy .fy # Frisian
AddLanguage ga .ga # Irish
AddLanguage gd .gd # Scots Gaelic
AddLanguage gl .gl # Galician
AddLanguage gn .gn # Guamni
AddLanguage gu .gu # Gujarati
AddLanguage ha .ha # Hausa
AddLanguage he .he # Hebrew
AddLanguage hi .hi # Hindi
AddLanguage hr .hr # Croatian
AddLanguage hu .hu # Hungarian
AddLanguage hy .hy # Armenian
AddLanguage ia .ia # Interlingua
AddLanguage id .id # Indonesian
AddLanguage ie .ie # lnteriingue
AddLanguage ik .ik # Knupiak
AddLanguage is .is # Icelandic
AddLanguage it .it # Italian
AddLanguage iu .iu # Inuktitut (Eskimo)
AddLanguage ja .ja # Japanese
AddLanguage jw .jw # Javanese
AddLanguage ka .ka # Georgian
AddLanguage kk .kk # Kazakh
AddLanguage kl .kl # Greaenlandic
AddLanguage km .km # Cambodian
AddLanguage kn .kn # Kannada
AddLanguage ko .ko # Korean
AddLanguage ks .ks # Kashmiri
AddLanguage ku .ku # Kurdish
AddLanguage ky .ky # Kirghiz
AddLanguage la .la # Latin
AddLanguage ln .ln # Lingala
AddLanguage lo .lo # Laothian
AddLanguage lt .lt # Lithuainnian
AddLanguage lv .lv # Latvian, Lettish
AddLanguage mg .mg # Malagasy
AddLanguage mi .mi # Maori
AddLanguage mk .mk # Macedonian
AddLanguage ml .ml # Malayalam
AddLanguage mn .mn # Mongolian
AddLanguage mo .mo # Moldavian
AddLanguage mr .mr # Marathi
AddLanguage ms .ms # Malay
AddLanguage mt .mt # Maltese
AddLanguage my .my # Burmese
AddLanguage na .na # Nauru
AddLanguage ne .ne # Nepali
AddLanguage nl .nl # Dutch
AddLanguage no .no # Norwegian
AddLanguage oc .oc # Occitan
AddLanguage om .om # (Afan) Oromo
AddLanguage or .or # Oriya
AddLanguage pa .pa # Punjabi
AddLanguage pl .po # Polish (use .po instead .pl to avoid problems with perl files)
AddLanguage ps .ps # Pashto, Pushto
AddLanguage pt .pt # Portuguese
AddLanguage qu .qu # Ouechua
AddLanguage rm .rm # Rhaeto-Romance
AddLanguage rn .rn # Kirundi
AddLanguage ro .ro # Romanian
AddLanguage ru .ru # Russian
AddLanguage rw .rw # Kinya, Rwanda
AddLanguage sa .sa # Sanskrit
AddLanguage sd .sd # Sindhi
AddLanguage sg .sg # Sangro
AddLanguage sh .sh # Serbo-Croatian
AddLanguage si .si # Singhalese
AddLanguage sk .sk # Slovak
AddLanguage sl .sl # Slovenian
AddLanguage sm .sm # Samoan
AddLanguage sn .sn # Shona
AddLanguage so .so # Somali
AddLanguage sq .sq # Albanian
AddLanguage sr .sr # Serbian
AddLanguage ss .ss # Siswati
AddLanguage st .st # Sesotho
AddLanguage su .su # Sundanese
AddLanguage sv .sv # Swedish
AddLanguage sw .sw # Swahili
AddLanguage ta .ta # Tamil
AddLanguage te .te # Tegulu
AddLanguage tg .tg # Tajik
AddLanguage th .th # Thai
AddLanguage ti .ti # Tigrinya
AddLanguage tk .tk # Turkmen
AddLanguage tl .tl # Tagalog
AddLanguage tn .tn # Setswana
AddLanguage to .to # Tonga
AddLanguage tr .tr # Turkish
AddLanguage ts .ts # Tsonga
AddLanguage tt .tt # Tatar
AddLanguage tw .tw # Twi
AddLanguage ug .ug # Uigur
AddLanguage uk .uk # Ukrainian
AddLanguage ur .ur # Urdu
AddLanguage uz .uz # Uzbek
AddLanguage vi .vi # Vietnamese
AddLanguage vo .vo # Volapuek
AddLanguage wo .wo # Wolof
AddLanguage xh .xh # Xhosa
AddLanguage yi .yi # Yiddish
AddLanguage yo .yo # Yoruba
AddLanguage za .za # Zhuang
AddLanguage zh .zh # Chinese
AddLanguage zu .zu # Zulu
LanguagePriority en de fr

#ErrorDocument 500 "The server made a boo boo.
#ErrorDocument 404 /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl
#ErrorDocument 402 http://some.other_server.com/subscription_info.html

-----------------

Comments? 

ciao...
-- 
Lars Eilebrecht
sfx@unix-ag.org

Mime
View raw message