nginx.conf 570 B

12345678910111213141516171819202122232425262728
  1. worker_processes auto;
  2. events {
  3. worker_connections 1024;
  4. }
  5. http {
  6. include mime.types;
  7. default_type application/octet-stream;
  8. sendfile on;
  9. keepalive_timeout 65;
  10. client_max_body_size 20m;
  11. server {
  12. listen 80;
  13. server_name localhost;
  14. location / {
  15. root /home/web;
  16. index index.html index.htm;
  17. try_files $uri $uri/ /index.html;
  18. }
  19. error_page 500 502 503 504 /50x.html;
  20. location = /50x.html {
  21. root html;
  22. }
  23. }
  24. }