aboutsummaryrefslogtreecommitdiffstats
path: root/openbsd/httpd.conf
blob: 4674a998ebf7a93625ff3622a9a6a6187cf29d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"
        	}