diff options
Diffstat (limited to 'httpd.conf.5')
-rw-r--r-- | httpd.conf.5 | 12 |
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" |