问题描述
您好!stackoverflow社区
有些文件可以工作,有些则不能工作,说实话我会丢失的:)
这是我的Nginx虚拟主机
server {
listen xx.xx.xx.xx:80;
charset utf-8;
index index.PHP index.html index.htm;
set $root_path /home/blog/public_html;
root $root_path;
try_files $uri $uri/ @rewrite;
location @rewrite {
rewrite !\.(js|ico|gif|jpg|png|css|swf)$ /index.PHP;
rewrite \.compressed\.(js|css)$ /index.PHP?process=compress;
rewrite ^/(.*)$ /index.PHP?$args;
}
location ~ \.PHP {
fastcgi_pass unix:/var/run/PHP5-fpm.sock;
fastcgi_index /index.PHP;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.PHP)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ ^/(css|img|images|js|gif|flv|swf|download)/(.+)$ {
root $root_path;
}
location ~*"/(ajax|_www)/[a-zA-Z0-9_]{0,30}\.PHP$" {
}
location ~ /\.ht {
deny all;
}
client_max_body_size 9M;
include common/tunning;
include common/suppress_logs;
}
能帮我解决这些指令吗? 非常感谢你
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)