nginx1.conf 474 B

123456789101112131415161718
  1. server {
  2. listen 80;
  3. # gzip config
  4. gzip on;
  5. gzip_min_length 1k;
  6. gzip_comp_level 9;
  7. gzip_types text/plain text/css text/javascript application/json application/javascript application/x-javascript application/xml;
  8. gzip_vary on;
  9. gzip_disable "MSIE [1-6]\.";
  10. root /usr/share/nginx/html;
  11. location / {
  12. add_header Cache-Control no-cache;
  13. proxy_set_header Host 192.168.19.165:40081;
  14. try_files $uri $uri/ /index.html;
  15. }
  16. }