aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormonaco <mr.hedho@yahoo.com>2021-04-18 07:03:48 +0000
committerGitHub <noreply@github.com>2021-04-18 07:03:48 +0000
commit24746d0714995a17759ba7dbbcad1c86a6dacd8a (patch)
treedf4eae003756702c8f799c831fb1d5fb5ccff474
parentUpdate README.md (diff)
downloadKISSmo-24746d0714995a17759ba7dbbcad1c86a6dacd8a.tar.gz
KISSmo-24746d0714995a17759ba7dbbcad1c86a6dacd8a.zip
Create httpd.conf
-rw-r--r--openbsd/httpd.conf25
1 files changed, 25 insertions, 0 deletions
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"
+ }