Annotation of www/httpd.conf, Revision 1.1
1.1 ! beck 1: # $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $
! 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: # A name-based "virtual" server on the same address
! 18: server "default" {
! 19: listen on * port 80
! 20:
! 21: # Optional, but probably best - change your syslog.conf to do
! 22: # what you want with it then.
! 23: log syslog
! 24:
! 25: # Serve up ftp space mounted in /var/www/pub.
! 26: # Comment this out if you are not mirroring the distribution sets
! 27: location "/pub/*" {
! 28: directory auto index
! 29: log style combined
! 30: root "/"
! 31: }
! 32: # Send man.cgi requests to man.openbsd.org
! 33: location "/cgi-bin/man.cgi*" {
! 34: block return 301 "http://man.openbsd.org$REQUEST_URI"
! 35: }
! 36: # Send cvsweb requests to cvsweb.openbsd.org
! 37: location "/cgi-bin/cvsweb*" {
! 38: block return 301 "http://cvsweb.openbsd.org$REQUEST_URI"
! 39: }
! 40: directory auto index
! 41: root "/htdocs/www"
! 42: }
! 43:
! 44: # Include MIME types instead of the built-in ones
! 45: types {
! 46: include "/usr/share/misc/mime.types"
! 47: # Necessary to ensure patch files show up as text not binary
! 48: text/plain sig
! 49: }
! 50: