jiajieit
Chevereto Member
Hello, request the latest full nginx rules for chevereto v3 3.3.2 .
I'm using nginx searched the forum rules, the current site 403 error occurs.
php 5.4.31
nginx/1.6.0
url:http://imgchr.com
the nginx rules;
I'm using nginx searched the forum rules, the current site 403 error occurs.
php 5.4.31
nginx/1.6.0
url:http://imgchr.com
the nginx rules;
Code:
server
{
listen 80;
server_name imgchr.com www.imgchr.com;
root /home/wwwroot/imgchr.com;
if ($host = 'www.imgchr.com' ) {
rewrite ^/(.*)$ http://imgchr.com/$1 permanent;
}
# location /
# {
# index index.html index.htm index.php;
#
# if (!-e $request_filename)
# {rewrite (.*) /index.php last;}
#
# try_files $uri $uri/ /index.php?$query_string;
# }
location ~ .*\.(php|php5)?$
{
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location /admin {
try_files $uri /admin/index.php?$args;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 8d;
}
location ~ .*\.(js|css)?$
{
expires 8d;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ ^/(images)/ {
try_files $uri /content/system/404.gif;
expires 1y;
add_header Pragma public;
add_header Cache-Control public;
add_header Last-Modified "";
add_header ETag "";
break;
}
}