ngnix配置文件

来源:互联网 发布:优化人力资源配置 提升 编辑:程序博客网 时间:2024/05/22 03:21
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来测试配置文件是否正确


原创粉丝点击