X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=examples%2Fvhosts%2Fpatterns.conf;fp=examples%2Fvhosts%2Fpatterns.conf;h=e73838db311de980d3cf0bebba23e2eea3da580d;hp=552f2d0f34dad6c6d9e2db101c34d34282a4ecc7;hb=0c345c82fe0465b7e92076b90e3132ae3b6eba98;hpb=121587a56e50fd4cce884d9e61e8796436b150a4 diff --git a/examples/vhosts/patterns.conf b/examples/vhosts/patterns.conf index 552f2d0..e73838d 100644 --- a/examples/vhosts/patterns.conf +++ b/examples/vhosts/patterns.conf @@ -1,13 +1,23 @@ -child default - exec dirplex default-site +# Sample virtual host configuration. See the patplex(1) manual page +# for further details on the configuration format. + +match + # Match localhost specifically. Note that the Host header may + # include a port specification, which is optionally matched by the + # end of the regex. + header host ^localhost(:[0-9]+)?$ i + handler localhost child localhost + # The child specification called when the localhost pattern + # matches. Simply run dirplex(1) in the subdirectory `localhost'. exec dirplex localhost match + # Catch-all pattern for all requests not specifically directed at + # localhost. default handler default -match - header host localhost(:[0-9]+)?$ i - handler localhost +child default + exec dirplex default-site