airtime.conf 827 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. server {
  2. listen 80;
  3. server_name SERVER_NAME;
  4. root WEB_ROOT;
  5. index index.html index.htm index.php;
  6. client_max_body_size 512M;
  7. fastcgi_buffers 64 4K;
  8. location = /robots.txt {
  9. allow all;
  10. log_not_found off;
  11. access_log off;
  12. }
  13. location ~ ^/(?:install|\.ht)/ {
  14. deny all;
  15. }
  16. location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {
  17. expires 30d;
  18. access_log off;
  19. }
  20. location / {
  21. try_files $uri $uri/ /index.php$is_args$args;
  22. }
  23. location ~ ^/.*\.php {
  24. include fastcgi_params;
  25. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27. fastcgi_param PATH_INFO $fastcgi_path_info;
  28. fastcgi_param modHeadersAvailable true;
  29. fastcgi_pass 127.0.0.1:9000;
  30. fastcgi_intercept_errors on;
  31. }
  32. }