From 1634d1e5248f70fddcc56d1a32f32414d5a61e65 Mon Sep 17 00:00:00 2001 From: reyk <> Date: Wed, 30 Jul 2014 10:05:14 +0000 Subject: [PATCH] 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. --- src/etc/examples/httpd.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/etc/examples/httpd.conf b/src/etc/examples/httpd.conf index 826f0260..9c951398 100644 --- a/src/etc/examples/httpd.conf +++ b/src/etc/examples/httpd.conf @@ -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 ext_addr="egress" @@ -9,6 +9,9 @@ ext_addr="egress" # Servers server "default" { listen on $ext_addr port 80 + location "/pub/*" { + directory auto index + } } # A name-based "virtual" server on the same address