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;
}
服务器nginx配置文件
最新推荐文章于 2022-10-12 22:33:41 发布