default.conf.template 506 B

1234567891011121314151617181920212223
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name localhost;
  5. access_log /var/log/nginx/host.access.log main;
  6. location / {
  7. gzip_static on;
  8. root /usr/share/nginx/html;
  9. #index index.html;
  10. try_files $uri $uri/ /index.html;
  11. }
  12. #error_page 404 /404.html;
  13. # redirect server error pages to the static page /50x.html
  14. #
  15. error_page 500 502 503 504 /50x.html;
  16. location = /50x.html {
  17. root /usr/share/nginx/html;
  18. }
  19. }