forked from elasticweb/nginx-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipb3.conf
52 lines (40 loc) · 824 Bytes
/
ipb3.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
root /home/u1/domains/example.com;
index index.php;
try_files $uri $uri/ /index.php;
location ~^(/page/).*(\.php)$ {
try_files $uri $uri/ /index.php;
}
location /interface/ipsconnect/ipsconnect.php {
deny all;
}
location ~^(/uploads/).*(\.php)$ {
deny all;
}
location ~^(/hooks/).*(\.php)$ {
deny all;
}
location ~^(/cache/).*(\.php)$ {
deny all;
}
location ~^(/screenshots/).*(\.php)$ {
deny all;
}
location ~^(/downloads/).*(\.php)$ {
deny all;
}
location ~^(/blog/).*(\.php)$ {
deny all;
}
location ~^(/public/style_).*(\.php)$ {
deny all;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location ~ \.php$ {
fastcgi_param PATH_INFO $path_info;
fastcgi_pass unix:/var/run/php5-example.com.sock;
fastcgi_index index.php;
include fastcgi.conf;
}