aboutsummaryrefslogtreecommitdiffstats
path: root/tools/httpd.html
diff options
context:
space:
mode:
Diffstat (limited to 'tools/httpd.html')
-rw-r--r--tools/httpd.html65
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>