Annotation of www/httpd.conf, Revision 1.2
1.2 ! beck 1: # $OpenBSD: httpd.conf,v 1.1 2016/05/12 13:48:55 beck Exp $
1.1 beck 2:
3: # A configuration suitable for being an OpenBSD www/sets mirror.
4: #
5: # This assumes you have checked out the www repository under
6: # /var/www/htdocs/www and that you have a mirror of the OpenBSD
7: # distribition space mounted under /var/www/pub/OpenBSD, and
8: # you are running OpenBSD httpd with it chrooting to the default
9: # /var/www location.
10: #
11:
12: prefork 20
13:
14: # Necessary so patches and other files don't show up as binaries
15: default type text/plain
16:
17: server "default" {
18: listen on * port 80
19:
20: # Optional, but probably best - change your syslog.conf to do
21: # what you want with it then.
22: log syslog
23:
24: # Serve up ftp space mounted in /var/www/pub.
25: # Comment this out if you are not mirroring the distribution sets
26: location "/pub/*" {
27: directory auto index
28: log style combined
29: root "/"
30: }
31: # Send man.cgi requests to man.openbsd.org
32: location "/cgi-bin/man.cgi*" {
33: block return 301 "http://man.openbsd.org$REQUEST_URI"
34: }
35: # Send cvsweb requests to cvsweb.openbsd.org
36: location "/cgi-bin/cvsweb*" {
37: block return 301 "http://cvsweb.openbsd.org$REQUEST_URI"
38: }
39: directory auto index
40: root "/htdocs/www"
41: }
42:
43: # Include MIME types instead of the built-in ones
44: types {
45: include "/usr/share/misc/mime.types"
46: # Necessary to ensure patch files show up as text not binary
47: text/plain sig
48: }
49: