Guest User

Untitled

a guest
Apr 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. server_name "~^(?<application>\w+)\.(?<folder>\w+)\.loc$";
  5.  
  6. root /var/www/projects/oro-mono/$folder/application/$application/web;
  7. #index app.php access_log /var/log/nginx/$host.access_log main;
  8. error_log /var/log/nginx/monolitic.error_log debug;
  9. try_files $uri $uri/ @rewrite;
  10. location @rewrite {
  11. rewrite ^/(.*)$ /app.php/$1;
  12. }
  13.  
  14. location ~ [^/]\.php(/|$) {
  15. fastcgi_split_path_info ^(.+?\.php)(/.*)$;
  16. if (!-f $document_root$fastcgi_script_name) {
  17. return 404;
  18. }
  19.  
  20. fastcgi_buffers 4 512k;
  21. fastcgi_buffer_size 256k;
  22. fastcgi_busy_buffers_size 512k;
  23. fastcgi_index app.php;
  24. fastcgi_read_timeout 60m;
  25. fastcgi_pass unix:/var/run/php5-fpm.sock;
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27. include fastcgi_params;
  28. }
  29. }
Add Comment
Please, Sign In to add comment