#user nobody;
worker_processes 2;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 2048;
}
http {
include mime.types;
default_type application/octet-stream;
#上傳文件大小限制
client_max_body_size 50m;
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 0;
server {
listen 80;
server_name localhost;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
#charset koi8-r;
#access_log logs/host.access.log main;
#訪問 http://ip:port 定向到 /home/stm/html/zhgl
location / {
root /home/stm/html/zhgl;
index index.html index.htm;
}
location /stmMonitorJump/{
proxy_pass htt
nginx不帶gizp壓縮配置
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.