-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.conf
52 lines (40 loc) · 910 Bytes
/
default.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
server {
listen 80 default_server;
listen [::]:80 default_server;
root /app;
index index.php index.html index.htm;
server_name _;
access_log /dev/stdout;
error_log /dev/stderr;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location /feeds {
try_files $uri $uri/ /feeds.php?$query_string;
}
location /sobre {
try_files $uri $uri/ /sobre.php?$query_string;
}
location /admin {
try_files $uri $uri/ /admin.php?$query_string;
}
location ^~ /logs/ {
deny all;
return 403;
}
location ^~ /cron/ {
deny all;
return 403;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass 127.0.0.1:9000;
}
location = /.env {
deny all;
return 404;
}
location ~ /\.ht {
deny all;
}
}