Advertisement
Guest User

Untitled

a guest
Sep 8th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. # don't forget to clean this hardcode later
  5. root /srv/http/hosts/ambinight.com;
  6. index index.html index.htm app_dev.php;
  7.  
  8. server_name ambinight.debug;
  9.  
  10. error_log /srv/http/src/ambinight/app/logs/server.debug.error.log debug;
  11. access_log /srv/http/src/ambinight/app/logs/server.debug.access.log;
  12.  
  13. location / {
  14. try_files /web$uri /web$uri/ /app/app_dev.php?$args;
  15. }
  16.  
  17. location ~ \.php$ {
  18. set $fsn /app/app_dev.php;
  19. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  20. fastcgi_pass unix:/var/run/php5-fpm.sock;
  21. fastcgi_index app/app_dev.php;
  22. include fastcgi_params;
  23. fastcgi_param script_filename $document_root$fsn;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement