You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.5 KiB

#user nobody;
worker_processes 8;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type text/html;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#init_by_lua_file lua/lua_script/init.lua;
gzip_static on;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_comp_level 4;
gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml text/javascript application/json;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6].";
gzip_vary on;
server {
listen 80;
server_name localhost;
charset utf-8;
#access_log logs/host.access.log main;
# location /sdsf/addInfo {
# content_by_lua_file /usr/local/openresty/nginx/lua/lua_script/addInfo.lua;
# }
# location ~ /sdsf/.*\.(html|css|js|eot|svg|ttf|woff)$ {
# root /usr/local/openresty/nginx/html/;
# expires -1d;
# }
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}