| 1 | # Sample virtual host configuration. See the patplex(1) manual page |
| 2 | # for further details on the configuration format. |
| 3 | |
| 4 | match |
| 5 | # Match localhost specifically. Note that the Host header may |
| 6 | # include a port specification, which is optionally matched by the |
| 7 | # end of the regex. |
| 8 | header host ^localhost(:[0-9]+)?$ i |
| 9 | handler localhost |
| 10 | |
| 11 | child localhost |
| 12 | # The child specification called when the localhost pattern |
| 13 | # matches. Simply run dirplex(1) in the subdirectory `localhost'. |
| 14 | exec dirplex localhost |
| 15 | |
| 16 | match |
| 17 | # Catch-all pattern for all requests not specifically directed at |
| 18 | # localhost. |
| 19 | default |
| 20 | handler default |
| 21 | |
| 22 | child default |
| 23 | exec dirplex default-site |