From 959cf4a8d9b5b28785f343e3d556893b7ab15d88 Mon Sep 17 00:00:00 2001 From: reyk <> Date: Mon, 4 Aug 2014 17:50:48 +0000 Subject: [PATCH] Add HTTPS server example. --- src/etc/examples/httpd.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/etc/examples/httpd.conf b/src/etc/examples/httpd.conf index 161c4d80..7c949f20 100644 --- a/src/etc/examples/httpd.conf +++ b/src/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