default.conf.template 763 B

12345678910111213141516171819202122232425262728
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name *.kptyun.com;
  5. gzip on;
  6. gzip_comp_level 6;
  7. gzip_types text/plain application/css text/css application/xml text/javascript application/javascript application/x-javascript;
  8. location / {
  9. root /usr/share/nginx/html;
  10. #index index.html;
  11. try_files $uri $uri/ /index.html;
  12. client_max_body_size 300m; #最大接受300m文件以内的
  13. client_body_timeout 20s;
  14. expires 10d;
  15. add_header Cache-Control "public";
  16. }
  17. #error_page 404 /404.html;
  18. # redirect server error pages to the static page /50x.html
  19. #
  20. error_page 500 502 503 504 /50x.html;
  21. location = /50x.html {
  22. root /usr/share/nginx/html;
  23. }
  24. }