Commit | Line | Data |
---|---|---|
0c345c82 FT |
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 | |
7f838309 FT |
10 | |
11 | child localhost | |
0c345c82 FT |
12 | # The child specification called when the localhost pattern |
13 | # matches. Simply run dirplex(1) in the subdirectory `localhost'. | |
7f838309 FT |
14 | exec dirplex localhost |
15 | ||
16 | match | |
0c345c82 FT |
17 | # Catch-all pattern for all requests not specifically directed at |
18 | # localhost. | |
7f838309 FT |
19 | default |
20 | handler default | |
21 | ||
0c345c82 FT |
22 | child default |
23 | exec dirplex default-site |