diff options
author | punk <punk@libernaut> | 2021-04-23 20:37:50 +0100 |
---|---|---|
committer | punk <punk@libernaut> | 2021-04-23 20:38:24 +0100 |
commit | 6b5cf63d1987889e272643bf7eeb7725df856d11 (patch) | |
tree | 39746296c7641bde4d40b79fee5df7ad3c18cd50 /tools/httpd.html | |
parent | eac48b5a8d709135a95abcc2243b369095f074f4 (diff) | |
parent | 2fc20ef28d32bd8de7be2e2095519a24272b51bd (diff) | |
download | doc-6b5cf63d1987889e272643bf7eeb7725df856d11.tar.gz |
release 0.7.1
Diffstat (limited to 'tools/httpd.html')
-rw-r--r-- | tools/httpd.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/tools/httpd.html b/tools/httpd.html new file mode 100644 index 0000000..affb121 --- /dev/null +++ b/tools/httpd.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html dir="ltr" lang="en"> + <head> + <meta charset='utf-8'> + <title>Httpd</title> + </head> + <body> + + <a href="index.html">Tools Index</a> + + <h1>Httpd</h1> + + <p>On OpenBSD copy default configuration file;</p> + + <pre> + # cp /etc/examples/httpd.conf /etc/httpd.conf + </pre> + + <p>Default configuration looks like this;</p> + + <pre> + # $OpenBSD: httpd.conf,v 1.20 2018/06/13 15:08:24 reyk Exp $ + + server "example.com" { + listen on * port 80 + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } + location * { + block return 302 "https://$HTTP_HOST$REQUEST_URI" + } + } + + server "example.com" { + listen on * tls port 443 + tls { + certificate "/etc/ssl/example.com.fullchain.pem" + key "/etc/ssl/private/example.com.key" + } + location "/pub/*" { + directory auto index + } + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } + } + </pre> + + <p>Check configuration;</p> + + <pre> + httpd -n + </pre> + + <a href="index.html">Tools Index</a> + <p> + This is part of the LeetIO System Documentation. + Copyright (C) 2021 + LeetIO Team. + See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a> + for copying conditions.</p> + </body> +</html> |