-
Notifications
You must be signed in to change notification settings - Fork 101
/
instantcms.conf
69 lines (53 loc) · 1.08 KB
/
instantcms.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
root /home/u1/domains/example.com;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ ^/system/ {
deny all;
}
location ~ ^/filters/ {
deny all;
}
location ~ ^/languages/ {
deny all;
}
location ~ ^/cache/ {
deny all;
}
location ~* /static/.*\.(php|php3|php4|php5|php6|phps|phtml)$ {
deny all;
}
location ~* /templates/.*\.(tpl|txt|php|php3|php4|php5|php6|phps|phtml)$ {
deny all;
}
location ~* /upload/.*\.(php|php3|php4|php5|php6|phps|phtml)$ {
deny all;
}
location ~* /wysiwyg/.*\.(php|php3|php4|php5|php6|phps|phtml)$ {
deny all;
}
location /credits.txt {
deny all;
}
location /readme.txt {
deny all;
}
location ~ ^/license.(.*).txt$ {
deny all;
}
location ~ /\. {
deny all;
}
location /sitemap {
rewrite ^/sitemap(.*).xml$ /cache/static/sitemaps/sitemap$1.xml;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 7d;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/php5-example.com.sock;
}