#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 http
nginx不带gizp压缩配置
本文档详细介绍了如何在Nginx服务器配置中禁用Gzip压缩,以确保未经压缩的内容传输,这对于调试和某些特定场景非常有用。
摘要由CSDN通过智能技术生成