Annotation of www/httpd.conf, Revision 1.5
1.5 ! tb 1: # $OpenBSD: httpd.conf,v 1.4 2017/03/25 18:03:36 tb 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
1.3 sthen 7: # distribution space mounted under /var/www/pub/OpenBSD, and
1.1 beck 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*" {
1.5 ! tb 33: block return 301 "https://man.openbsd.org$REQUEST_URI"
1.1 beck 34: }
35: # Send cvsweb requests to cvsweb.openbsd.org
36: location "/cgi-bin/cvsweb*" {
1.4 tb 37: block return 301 "https://cvsweb.openbsd.org$REQUEST_URI"
1.1 beck 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: