forked from elasticweb/nginx-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kodicms.conf
50 lines (40 loc) · 806 Bytes
/
kodicms.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
root /home/u1/domains/example.com/public;
location ~ /\.svn {
deny all;
}
location ~ /\.git {
deny all;
}
location ~ /\.hg {
deny all;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 7d;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ (^|/)\. {
return 403;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location /vendor/ {
location ~ .*\.(js|css|png|jpg|jpeg|gif|ico)?$ {
root /home/u1/domains/example.com;
}
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/php5-example.com.sock;
}