default.conf 969 B

12345678910111213141516171819202122232425262728293031323334353637
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. #charset koi8-r;
  5. access_log /var/log/nginx/host.access.log main;
  6. gzip on;
  7. gzip_min_length 1k;
  8. gzip_buffers 4 16k;
  9. gzip_comp_level 8;
  10. gzip_types text/plain application/javascript application/x-javascript text/css application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png;
  11. gzip_vary off;
  12. gzip_disable "MSIE [1-6]\.";
  13. location / {
  14. root /usr/share/nginx/html;
  15. try_files $uri $uri/ /index.html;
  16. index start.html index.html;
  17. }
  18. # location /api {
  19. # proxy_read_timeout 300;
  20. # proxy_pass http://192.168.3.177:8080;
  21. # }
  22. # location /ws {
  23. # proxy_read_timeout 300;
  24. # proxy_pass http://192.168.3.177:8080/ws;
  25. # }
  26. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  27. # location /api {
  28. # proxy_pass http://api-server:8082;
  29. # }
  30. }