1 # httpd.conf Sample httpd.conf file By Michael Temari 2006-06-01
5 # path = sets the translation for //
7 # these have special meaning if at beginning of path
9 # /~user = gets replaced with user home directory
11 #redirect http://SomeWhere.Else.Com/
15 # url = Will redirect entire website via error code 301 MOVED PERM to
16 # url and original url path of request.
22 # if present the server will run as the given username otherwise the
23 # server will run as who ever started it (normally root).
29 # if present the server will be chroot'ed to the given directory name
30 # normally the home directory of username given above. Be aware if this
31 # is set then you can only access stuff off this new root.
33 # these have special meaning if at beginning of the directory
35 # // = gets replaced by serverroot directory
36 # /~user = gets replaced with user home directory
42 # the file must exist also and a log of http transactions will be kept
44 # these have special meaning if at the beginning of the filename
46 # // = gets replaced by serverroot directory
47 # /~user = gets replaced with user home directory
49 logfile /usr/adm/httpd.log
53 # the file must exist also and a debug log of http transactions will be kept
55 # these have special meaning if at the beginning of the filename
57 # // = gets replaced by serverroot directory
58 # /~user = gets replaced with user home directory
60 dbgfile /usr/adm/httpd.dbg
62 # dirsend [list of files to try until 1st one is found]
67 # direxec [script to run for automatic directory page output]
70 # these have special meaning if at beginning of script
72 # // = gets replaced by serverroot directory
73 # /~user = gets replaced with user home directory
76 direxec /usr/local/bin/dir2html
78 # vhost hostname VhostRoot
80 # vhost is for defining access for virtual hosts. If none are configured then
81 # any host is accepted. If specified then access is only granted for requests
82 # for hosts which are configured here. In the Vpath section below the /// gets
83 # translated to the corresponding VhostRoot.
85 # vhost temware.dyndns.org //doc/
86 # vhost minix.homeip.net //doc2/
88 # auth authname authdescription access [passwdfile [users]]
90 # auth defines any access authorization to be used in vpath
92 # authname = name to give to this authorization (case insensitive)
93 # authdescription = Description of this authorization
94 # access = r=read, w=write, x=execute, h=headers (other than rwxh then no access)
95 # NOTE: r=file should be read, w=file can be overwrote
96 # NOTE: x=file should be executed
97 # NOTE: h=headers (executing program will produce all http headers)
98 # NOTE: access is on top of unix access
99 # passwdfile = Name of passwd file to be used (. means /etc/passwd)
100 # (if none given then no user check)
101 # users = valid users for this authorization (if none given then all users valid)
103 # these have special meaning if at beginning of passwdfile
105 # // = gets replaced by serverroot directory
106 # /~user = gets replaced with user home directory
109 auth AnyBody AnyBody R
110 System System_User R .
111 Uploads Uploads RW . root
113 # proxyauth authname authdescription access [passwdfile [users]]
115 # proxyauth defines any access authorization to be used for Proxy access
117 # authname = Same as auth above
118 # authdescription = Same as auth above
119 # access = Must be R to allow proxy
120 # passwdfile = Same as auth above
121 # users = Same as auth above
130 # vpath sets up a list of url path translations and authorizations
132 # from = user specified url
133 # *=wildcard, $=wildard, but keep path for passing to program
135 # auth = authname from above (null for no authorization)
136 # access = r-read, w-write, x-execute (if not given taken from auth record)
137 # = h-headers (executing program will produce all http headers)
139 # these have special meaning if at beginning of to or serverroot fields
141 # // = gets replaced by serverroot directory
142 # /// = gets replaced by vhost root directory if configured otherwise same as //
143 # . = specified authorization only, use other translation elsewhere
144 # /~user = gets replaced with user home directory
149 /index.htm . AnyBody X
151 /c1d1$ //exec/cdrom AnyBody X
152 /c1d2$ //exec/cdrom AnyBody X
154 /src* /usr/src AnyBody R
158 # include tells the server to continue parsing configuration information
159 # in the given filename
161 # these have special meaning if at beginning of filename
163 # // = gets replaced by serverroot directory
164 # /~user = gets replaced with user home directory
166 include //etc/httpd.mtype