From 9c4fe323e3d3503dc2bf73fbce860096d00e8b39 Mon Sep 17 00:00:00 2001 From: reyk <> Date: Tue, 5 Aug 2014 18:01:10 +0000 Subject: [PATCH] Add configuration options for the most-important connection limits: max requests (per connection) and timeout. We don't want to add too many button, and there are good defaults, but these ones are kind of mandatory. --- src/etc/examples/httpd.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/etc/examples/httpd.conf b/src/etc/examples/httpd.conf index 7c949f20..c276797b 100644 --- a/src/etc/examples/httpd.conf +++ b/src/etc/examples/httpd.conf @@ -1,4 +1,4 @@ -# $OpenBSD: httpd.conf,v 1.8 2014/08/04 17:50:48 reyk Exp $ +# $OpenBSD: httpd.conf,v 1.9 2014/08/05 18:01:10 reyk Exp $ # # Macros @@ -48,6 +48,13 @@ server "www.example.com" { # An HTTPS server using SSL/TLS server "secure.example.com" { listen on 127.0.0.1 port 443 ssl + + # Define server-specific log files relative to /logs + log { access "secure-access.log", error "secure-error.log" } + + # Increase connection limits to extend the lifetime + connection { max requests 500, timeout 3600 } + root "/htdocs/secure.example.com" }