worker_processes 1;
daemon off;
events {
worker_connections 64;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 81;
server_name localhost;
location / {
index index.html index.htm index.php;
root D:/PROJECT/php/ECShop/upload;
expires 30d;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME D:/PROJECT/php/ECShop/upload$fastcgi_script_name;
include fastcgi_params;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
可以用nginx.exe -t来测试配置文件是否正确
294

被折叠的 条评论
为什么被折叠?



