default.conf.template 762 B

1234567891011121314151617181920212223242526272829303132
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name localhost;
  5. access_log /var/log/nginx/host.access.log main;
  6. gzip on;
  7. gzip_disable "msie6";
  8. gzip_vary on;
  9. gzip_proxied any;
  10. gzip_comp_level 6;
  11. gzip_buffers 16 8k;
  12. gzip_http_version 1.1;
  13. gzip_types text/plain application/css text/css application/xml text/javascript application/javascript application/x-javascript;
  14. location / {
  15. root /usr/share/nginx/html;
  16. #index index.html;
  17. try_files $uri $uri/ /index.html;
  18. }
  19. #error_page 404 /404.html;
  20. # redirect server error pages to the static page /50x.html
  21. #
  22. error_page 500 502 503 504 /50x.html;
  23. location = /50x.html {
  24. root /usr/share/nginx/html;
  25. }
  26. }