From 24746d0714995a17759ba7dbbcad1c86a6dacd8a Mon Sep 17 00:00:00 2001 From: monaco Date: Sun, 18 Apr 2021 09:03:48 +0200 Subject: Create httpd.conf --- openbsd/httpd.conf | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 openbsd/httpd.conf (limited to 'openbsd/httpd.conf') diff --git a/openbsd/httpd.conf b/openbsd/httpd.conf new file mode 100644 index 0000000..4674a99 --- /dev/null +++ b/openbsd/httpd.conf @@ -0,0 +1,25 @@ +server "yourewebsite.tld" { + listen on * tls port 443 + root "/directory/" + location "/*.pl" { + fastcgi + } + + directory { auto index, index "index.php" } + + tls { + certificate "/etc/ssl/yourewebsite.tld.fullchain.pem" + key "/etc/ssl/private/yourewebsite.tld.key" + } + + location "/p/*" { + directory { auto index, index "index.txt" } + } + + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 +} +location "*.php" { + fastcgi socket "/run/php-fpm.sock" + } -- cgit v1.2.3