summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2014-08-04 17:50:49 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2014-08-04 17:50:49 +0000
commitaa672c1d21adde0c248e09a361a1d65a91df03a5 (patch)
tree128f512fd0b7d13e3b1e3c27b072eb561792ca6d /etc
parent31a2311913501fad57907970b9f51918b1f5e9ef (diff)
Add HTTPS server example.
Diffstat (limited to 'etc')
-rw-r--r--etc/examples/httpd.conf8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/examples/httpd.conf b/etc/examples/httpd.conf
index 161c4d80260..7c949f20d1b 100644
--- a/etc/examples/httpd.conf
+++ b/etc/examples/httpd.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: httpd.conf,v 1.7 2014/08/04 16:07:59 reyk Exp $
+# $OpenBSD: httpd.conf,v 1.8 2014/08/04 17:50:48 reyk Exp $
#
# Macros
@@ -45,6 +45,12 @@ server "www.example.com" {
root "/htdocs/www.example.com"
}
+# An HTTPS server using SSL/TLS
+server "secure.example.com" {
+ listen on 127.0.0.1 port 443 ssl
+ root "/htdocs/secure.example.com"
+}
+
# Another server on a different internal IPv4 address
server "intranet.example.com" {
listen on 10.0.0.1 port 80