source: trunk/minix/commands/httpd/httpd.conf@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 4.6 KB
Line 
1# httpd.conf Sample httpd.conf file By Michael Temari 7/03/2003
2
3#serverroot path
4#
5# path = sets the translation for //
6#
7# these have special meaning if at beginning of path
8#
9# /~user = gets replaced with user home directory
10
11serverroot /~www
12
13#user username
14#
15# if present the server will run as the given username otherwise the
16# server will run as who ever started it (normally root).
17
18user www
19
20#chroot directory
21#
22# if present the server will be chroot'ed to the given directory name
23# normally the home directory of username given above. Be aware if this
24# is set then you can only access stuff off this new root.
25#
26# these have special meaning if at beginning of the directory
27#
28# // = gets replaced by serverroot directory
29# /~user = gets replaced with user home directory
30
31#chroot /~www
32
33#logfile filename
34#
35# the file must exist also and a log of http transactions will be kept
36#
37# these have special meaning if at the beginning of the filename
38#
39# // = gets replaced by serverroot directory
40# /~user = gets replaced with user home directory
41
42logfile /usr/adm/httpd.log
43
44#dbgfile filename
45#
46# the file must exist also and a debug log of http transactions will be kept
47#
48# these have special meaning if at the beginning of the filename
49#
50# // = gets replaced by serverroot directory
51# /~user = gets replaced with user home directory
52
53dbgfile /usr/adm/httpd.dbg
54
55# dirsend [list of files to try until 1st one is found]
56#
57
58dirsend index.htm
59
60# direxec [script to run for automatic directory page output]
61#
62#
63# these have special meaning if at beginning of script
64#
65# // = gets replaced by serverroot directory
66# /~user = gets replaced with user home directory
67#
68
69direxec /usr/local/bin/dir2html
70
71# vhost hostname VhostRoot
72#
73# vhost is for defining access for virtual hosts. If none are configured then
74# any host is accepted. If specified then access is only granted for requests
75# for hosts which are configured here. In the Vpath section below the /// gets
76# translated to the corresponding VhostRoot.
77
78# vhost temware.dyndns.org //doc/
79# vhost minix.homeip.net //doc2/
80
81# auth authname authdescription access [passwdfile [users]]
82#
83# auth defines any access authorization to be used in vpath
84#
85# authname = name to give to this authorization (case insensitive)
86# authdescription = Description of this authorization
87# access = r=read, w=write, x=execute, h=headers (other than rwxh then no access)
88# NOTE: r=file should be read, w=file can be overwrote
89# NOTE: x=file should be executed
90# NOTE: h=headers (executing program will produce all http headers)
91# NOTE: access is on top of unix access
92# passwdfile = Name of passwd file to be used (. means /etc/passwd)
93# (if none given then no user check)
94# users = valid users for this authorization (if none given then all users valid)
95#
96# these have special meaning if at beginning of passwdfile
97#
98# // = gets replaced by serverroot directory
99# /~user = gets replaced with user home directory
100#
101
102auth AnyBody AnyBody R
103 System System_User R .
104 Uploads Uploads RW . root
105
106# proxyauth authname authdescription access [passwdfile [users]]
107#
108# proxyauth defines any access authorization to be used for Proxy access
109#
110# authname = Same as auth above
111# authdescription = Same as auth above
112# access = Must be R to allow proxy
113# passwdfile = Same as auth above
114# users = Same as auth above
115#
116
117# proxyauth
118# Proxy Proxy R .
119
120
121# vpath from to auth
122#
123# vpath sets up a list of url path translations and authorizations
124#
125# from = user specified url
126# *=wildcard, $=wildard, but keep path for passing to program
127# to = real location
128# auth = authname from above (null for no authorization)
129# access = r-read, w-write, x-execute (if not given taken from auth record)
130# = h-headers (executing program will produce all http headers)
131#
132# these have special meaning if at beginning of to or serverroot fields
133#
134# // = gets replaced by serverroot directory
135# /// = gets replaced by vhost root directory if configured otherwise same as //
136# . = specified authorization only, use other translation elsewhere
137# /~user = gets replaced with user home directory
138#
139
140vpath * . AnyBody
141 /* /// AnyBody
142 /index.htm . AnyBody X
143 /ip . AnyBody X
144 /c1d1$ //exec/cdrom AnyBody X
145 /c1d2$ //exec/cdrom AnyBody X
146 /uploads* . Uploads
147 /src* /usr/src AnyBody R
148
149# include filename
150#
151# include tells the server to continue parsing configuration information
152# in the given filename
153#
154# these have special meaning if at beginning of filename
155#
156# // = gets replaced by serverroot directory
157# /~user = gets replaced with user home directory
158
159include //etc/httpd.mtype
Note: See TracBrowser for help on using the repository browser.