Browse Source

Add extended directory index options: "[no] index" and "[no] auto index".

The option "directory auto index" implements basic directory listing
and is turned off by default.
ok deraadt@
OPENBSD_5_6
reyk 10 years ago
parent
commit
7e37bc43eb
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/etc/examples/httpd.conf

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

@ -1,4 +1,4 @@
# $OpenBSD: httpd.conf,v 1.2 2014/07/26 10:27:19 reyk Exp $
# $OpenBSD: httpd.conf,v 1.3 2014/07/29 16:17:28 reyk Exp $
# Macros # Macros
ext_addr="egress" ext_addr="egress"
@ -20,6 +20,7 @@ server "www.example.com" {
# Another server on a different internal IPv4 address # Another server on a different internal IPv4 address
server "intranet.example.com" { server "intranet.example.com" {
listen on 10.0.0.1 port 80 listen on 10.0.0.1 port 80
directory { auto index, index "default.htm" }
root "/htdocs/internet.example.com" root "/htdocs/internet.example.com"
} }


Loading…
Cancel
Save