``` http { ... # 开启gzip gzip on; # 设置缓冲区大小 gzip_buffers 4 16k; gzip_static on; # 压缩级别 gzip_comp_level 6; # 压缩类型 gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; ... server { listen 8085; server_name localhost; location / { root /project/prod_cms; index index.html index.htm; try_files $uri $uri/ /index.html; } location ~ /cms/ { proxy_pass http://127.0.0.1:8080; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /project/prod_cms; } } } ```