dapengzhao
2019-05-20 15:49:12 +08:00
@keepeye
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name 114.116.109.253;
root /usr/local/nginx/html;
#location ~ \.php$ {
#try_files $uri =404;
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
#fastcgi_pass 127.0.0.1:9000;
#fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#include fastcgi_params;
#}
location ~ \.php$ {
return 403;
}
location / {
root /usr/local/nginx/html
index index.php
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}