-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathzencart-15.conf
91 lines (77 loc) · 1.69 KB
/
zencart-15.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
root /home/u1/domains/example.com;
location / {
try_files $uri $uri/ index.php;
}
location /docs {
if ($request_uri ~* (^\/|\.js|\.css|\.jpg|\.gif|\.png|\.html)$ ) {
break;
}
return 403;
}
location /editors {
if ($request_uri ~* (^\/|\.js|\.css|\.jpg|\.gif|\.png|\.html|\.xml)$ ) {
break;
}
return 403;
}
location /email {
if ($request_uri ~* (^\/|\.jpg|\.JPG|\.jpeg|\.JPEG|\.gif|\.GIF|\.png|\.PNG)$ ) {
break;
}
return 403;
}
location /extras {
if ($request_uri ~* (^\/|\.php|\.html)$ ) {
break;
}
return 403;
}
location /images {
if ($request_uri ~* (^\/|\.jpg|\.JPG|\.jpeg|\.JPEG|\.gif|\.GIF|\.png|\.PNG|\.swf|\.SWF|\.WMA)$) {
break;
}
return 403;
}
location /(download|pub) {
if ($request_uri ~* (^\/|\.zip|\.ZIP|\.gzip|\.pdf|\.PDF|\.mp3|\.MP3|\.swf|\.SWF|\.wma|\.WMA|\.wmv|\.WMV)$) {
break;
}
return 403;
}
location /includes {
if ($request_uri ~* (^\/|\.js|\.JS|\.css|\.CSS|\.jpg|\.JPG|\.gif|\.GIF|\.png|\.PNG|\.swf|\.SWF|\.xsl|\.XSL)$) {
break;
}
return 403;
}
location /media {
if ($request_uri ~* (^\/|\.mp3|\.mp4|\.swf|\.avi|\.mpg|\.wma|\.rm|\.ra|\.ram|\.wmv)$) {
break;
}
return 403;
}
location /admin {
if ($request_uri ~* (^\/|\.php|\.js|\.css|\.jpg|\.gif|\.png)$) {
break;
}
return 403;
}
location = /robots.txt {
access_log off;
log_not_found off;
}
location = /favicon.ico {
access_log off;
error_log off;
log_not_found off;
}
location ~ /\. {
deny all;
}
location ~* \.php$ {
fastcgi_pass unix:/var/run/php5-example.com.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}