summaryrefslogtreecommitdiff
path: root/httpd.conf.5
diff options
context:
space:
mode:
authorReyk Floeter <reyk@esdenera.com>2015-01-03 14:45:56 +0100
committerReyk Floeter <reyk@esdenera.com>2015-01-03 14:45:56 +0100
commit311a75186cb09ce91bbb34f71ddbf282b420fd21 (patch)
treeab31ebfcf4f34f3aaa671f953e9134a27d6035e0 /httpd.conf.5
parentae6f0669f0feb84e338ca3ae62f1fedbd4169b42 (diff)
downloadhttpd-311a75186cb09ce91bbb34f71ddbf282b420fd21.tar.gz
httpd-311a75186cb09ce91bbb34f71ddbf282b420fd21.zip
Add support for aliases and multiple listen statements (pending diff)
Diffstat (limited to 'httpd.conf.5')
-rw-r--r--httpd.conf.512
1 files changed, 12 insertions, 0 deletions
diff --git a/httpd.conf.5 b/httpd.conf.5
index 222b3dc..275f48b 100644
--- a/httpd.conf.5
+++ b/httpd.conf.5
@@ -135,6 +135,10 @@ must have a
.Ar name
and include one or more lines of the following syntax:
.Bl -tag -width Ds
+.It Ic alias Ar name
+Specify an additional alias
+.Ar name
+for this server.
.It Ic connection Ar option
Set the specified options and limits for HTTP connections.
Valid options are:
@@ -180,6 +184,7 @@ and defaults to
.Pa /run/slowcgi.sock .
.It Ic listen on Ar address Oo Ic tls Oc Ic port Ar number
Set the listen address and port.
+This statement can be specified multiple times.
.It Ic location Ar path Brq ...
Specify server configuration rules for a specific location.
The
@@ -391,6 +396,13 @@ If the same address is repeated multiple times in the
statement,
the server will be matched based on the requested host name.
.Bd -literal -offset indent
+server "www.example.com" {
+ alias "example.com"
+ listen on * port 80
+ listen on * tls port 443
+ root "/htdocs/www.example.com"
+}
+
server "www.a.example.com" {
listen on 203.0.113.1 port 80
root "/htdocs/www.a.example.com"