Browse Source

Add a generic system-wide /usr/share/misc/mime.types file that can be

included in httpd.conf.  httpd(8) now supports both mime.types
flavours with or without semicolon at the end of the line (nginx- or
apache-style).
Discussed with many, with input from halex@
OK halex@
OPENBSD_5_7
reyk 10 years ago
parent
commit
80c77acf9d
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/etc/examples/httpd.conf

+ 6
- 1
src/etc/examples/httpd.conf View File

@ -1,4 +1,4 @@
# $OpenBSD: httpd.conf,v 1.10 2014/08/06 20:29:54 reyk Exp $
# $OpenBSD: httpd.conf,v 1.11 2014/08/25 14:27:54 reyk Exp $
#
# Macros
@ -70,3 +70,8 @@ server "ipv6.example.com" {
listen on 2001:db8::53f6:3eab port 81
root "/htdocs/ipv6.example.com"
}
# Include MIME types instead of the built-in ones
types {
include "/usr/share/misc/mime.types"
}

Loading…
Cancel
Save