Browse Source

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.
OPENBSD_5_6
reyk 10 years ago
parent
commit
9c4fe323e3
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      src/etc/examples/httpd.conf

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

@ -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 # Macros
@ -48,6 +48,13 @@ server "www.example.com" {
# An HTTPS server using SSL/TLS # An HTTPS server using SSL/TLS
server "secure.example.com" { server "secure.example.com" {
listen on 127.0.0.1 port 443 ssl 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" root "/htdocs/secure.example.com"
} }


Loading…
Cancel
Save