default100.conf 715 B

12345678910111213141516171819202122232425262728
  1. server {
  2. listen 108;
  3. server_name localhost;
  4. #charset koi8-r;
  5. #access_log /var/log/nginx/log/host.access.log main;
  6. location / {
  7. root /usr/share/nginx/html;
  8. index index.html index.htm;
  9. gzip on;
  10. gzip_buffers 4 16k;
  11. gzip_comp_level 2;
  12. gzip_vary on;
  13. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
  14. }
  15. #error_page 404 /404.html;
  16. # redirect server error pages to the static page /50x.html
  17. #
  18. error_page 500 502 503 504 /50x.html;
  19. location = /50x.html {
  20. root /usr/share/nginx/html;
  21. }
  22. }