symfony2 767 B

123456789101112131415161718192021222324252627
  1. server {
  2. root /home/{user}/www/{vhost}/web;
  3. index app_dev.php;
  4. server_name {vhost};
  5. client_max_body_size 10M;
  6. error_log /var/log/nginx/{vhost}.error.log;
  7. access_log /var/log/nginx/{vhost}.access.log;
  8. location / {
  9. try_files $uri $uri/ /app_dev.php$uri /app_dev.php$is_args$args;
  10. }
  11. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:{pool_port}
  12. location ~ ^/(app|app_dev|check)\.php(/|$) {
  13. fastcgi_pass 127.0.0.1:{pool_port};
  14. fastcgi_split_path_info ^(.+\.php)(/.*)$;
  15. include fastcgi_params;
  16. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  17. fastcgi_param HTTPS off;
  18. }
  19. location ~ /\.ht {
  20. deny all;
  21. }
  22. }