nginx.conf 588 B

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