nginx.conf 612 B

1234567891011121314151617181920212223242526272829
  1. server {
  2. listen 80;
  3. server_name mini-h5.mall4j.com;
  4. gzip on;
  5. gzip_static on;
  6. location / {
  7. try_files $uri $uri/ /;
  8. root /usr/share/nginx/html/h5;
  9. index index.html;
  10. #### kill cache
  11. add_header Last-Modified $date_gmt;
  12. add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
  13. if_modified_since off;
  14. expires off;
  15. etag off;
  16. }
  17. error_page 404 /404.html;
  18. location = /404-light.html {
  19. }
  20. error_page 500 502 503 504 /50x.html;
  21. location = /50x.html {
  22. }
  23. }