Return to httpd.conf CVS log | Up to [local] / www |
File: [local] / www / httpd.conf (download)
Revision 1.5, Mon Jun 26 17:18:57 2017 UTC (6 years, 11 months ago) by tb
move man.openbsd.org links from http:// to https:// reduces the number of http:// links in www/ from >33k to <7k thanks to schwarze for doing the work |
# $OpenBSD: httpd.conf,v 1.5 2017/06/26 17:18:57 tb Exp $ # A configuration suitable for being an OpenBSD www/sets mirror. # # This assumes you have checked out the www repository under # /var/www/htdocs/www and that you have a mirror of the OpenBSD # distribution space mounted under /var/www/pub/OpenBSD, and # you are running OpenBSD httpd with it chrooting to the default # /var/www location. # prefork 20 # Necessary so patches and other files don't show up as binaries default type text/plain server "default" { listen on * port 80 # Optional, but probably best - change your syslog.conf to do # what you want with it then. log syslog # Serve up ftp space mounted in /var/www/pub. # Comment this out if you are not mirroring the distribution sets location "/pub/*" { directory auto index log style combined root "/" } # Send man.cgi requests to man.openbsd.org location "/cgi-bin/man.cgi*" { block return 301 "https://man.openbsd.org$REQUEST_URI" } # Send cvsweb requests to cvsweb.openbsd.org location "/cgi-bin/cvsweb*" { block return 301 "https://cvsweb.openbsd.org$REQUEST_URI" } directory auto index root "/htdocs/www" } # Include MIME types instead of the built-in ones types { include "/usr/share/misc/mime.types" # Necessary to ensure patch files show up as text not binary text/plain sig }