-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhttpd.conf
35 lines (26 loc) · 967 Bytes
/
httpd.conf
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
26
27
28
29
30
31
32
33
34
# egress is an alias for the default route interface.
ext_if="egress"
types { include "/usr/share/misc/mime.types" }
server "montibsd.tk" {
#listen on $ext_if port 80
listen on $ext_if tls port 443
# Set max upload size to 513M (in bytes)
connection max request body 9537919488
# First deny access to the specified files
location "/db_structure.xml" { block }
location "/.ht*" { block }
location "/README" { block }
location "/data*" { block }
location "/config*" { block }
location "/*.php*" {
root { "/owncloud", strip 1 }
fastcgi socket "/run/php-fpm.sock"
}
location "/*" {
root { "/owncloud", strip 1 }
}
tls {
certificate "/etc/ssl/openbsd60.nplusn.com.crt"
key "/etc/ssl/private/openbsd60.nplusn.com.key"
}
}