nginx.conf 584 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. if ($uri ~* .*\.(?:html)$){
  9. add_header Cache-Control "no-store, no-cache";
  10. }
  11. if ($uri ~* .*\.(?:css|js|png|jpg|jpeg|gif|gz|svg|mp4|ogg|ogv|webm|htc|xml|woff)$){
  12. expires 7d;
  13. }
  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. }