Browse Source

Add "location" keyword to specify path-specific configuration in

servers, for example auto index for a sub-directory only.  Internally,
a "location" is just a special type of a "virtual" server.
OPENBSD_5_6
reyk 10 years ago
parent
commit
1634d1e524
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/etc/examples/httpd.conf

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

@ -1,4 +1,4 @@
# $OpenBSD: httpd.conf,v 1.3 2014/07/29 16:17:28 reyk Exp $
# $OpenBSD: httpd.conf,v 1.4 2014/07/30 10:05:14 reyk Exp $
# Macros # Macros
ext_addr="egress" ext_addr="egress"
@ -9,6 +9,9 @@ ext_addr="egress"
# Servers # Servers
server "default" { server "default" {
listen on $ext_addr port 80 listen on $ext_addr port 80
location "/pub/*" {
directory auto index
}
} }
# A name-based "virtual" server on the same address # A name-based "virtual" server on the same address


Loading…
Cancel
Save