您的位置:首页 > 运维架构 > Nginx

服务器nginx配置文件

2018-03-05 13:12 197 查看
server {
listen  80 ;
server_name blog.wolfs.xin;
index index.php index.html index.htm;
set $root_path '/home/wwwroot/default/blog/public';
root $root_path;
add_header Cache-Control no-cache;
location / {
#allow 119.2.11.18;
try_files $uri $uri/ /index.php?$query_string;
}

location ~ \.php$ {
fastcgi_index /index.php;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/tmp/php-cgi.sock;
include fastcgi_params;
fastcgi_split_path_info       ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO       $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
access_log  /home/wwwlogs/ladon.me_access.log;
error_log  /home/wwwlogs/ladon.me_error.log;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: