From: reyk Date: Sat, 26 Jul 2014 10:27:19 +0000 (+0000) Subject: Add more examples. Requested by deraadt@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eb59cf87154285b5eb9dcf29ced37d87500adcef;p=openbsd Add more examples. Requested by deraadt@ --- diff --git a/etc/examples/httpd.conf b/etc/examples/httpd.conf index 37783e27a25..ab76a53fe1c 100644 --- a/etc/examples/httpd.conf +++ b/etc/examples/httpd.conf @@ -1,4 +1,4 @@ -# $OpenBSD: httpd.conf,v 1.1 2014/07/22 16:58:21 reyk Exp $ +# $OpenBSD: httpd.conf,v 1.2 2014/07/26 10:27:19 reyk Exp $ # Macros ext_addr="egress" @@ -10,3 +10,21 @@ ext_addr="egress" server "default" { listen on $ext_addr port 80 } + +# A name-based "virtual" server on the same address +server "www.example.com" { + listen on $ext_addr port 80 + root "/htdocs/www.example.com" +} + +# Another server on a different internal IPv4 address +server "intranet.example.com" { + listen on 10.0.0.1 port 80 + root "/htdocs/internet.example.com" +} + +# An IPv6-based server on a non-standard port +server "ipv6.example.com" { + listen on 2001:db8::53f6:3eab port 81 + root "/htdocs/ipv6.example.com" +}