Browse Source

Add HTTPS server example.

OPENBSD_5_6
reyk 10 years ago
parent
commit
959cf4a8d9
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/etc/examples/httpd.conf

+ 7
- 1
src/etc/examples/httpd.conf View File

@ -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 # Macros
@ -45,6 +45,12 @@ server "www.example.com" {
root "/htdocs/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 # Another server on a different internal IPv4 address
server "intranet.example.com" { server "intranet.example.com" {
listen on 10.0.0.1 port 80 listen on 10.0.0.1 port 80


Loading…
Cancel
Save