Guest User

Untitled

a guest
Sep 3rd, 2014
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. server {
  4. listen 80;
  5. server_name example.com; // This is normally the right url
  6.  
  7.  
  8. index index.php;
  9. root '/home/forge/default/testapp/public';
  10.  
  11. try_files $uri $uri/ @rewrite;
  12.  
  13. location @rewrite {
  14. rewrite ^/(.*)$ /index.php?_url=/$1;
  15. }
  16.  
  17. location ~ \.php$ {
  18. try_files $uri =404;
  19. fastcgi_index index.php;
  20.  
  21. include /etc/nginx/fastcgi_params;
  22.  
  23. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  24. fastcgi_param PATH_INFO $fastcgi_path_info;
  25. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_pat$
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_scr$
  27. fastcgi_pass unix:/var/run/php5-fpm.sock;
  28.  
  29. }
  30.  
  31. error_log /var/log/nginx/default.log;
  32. }
  33.  
  34.  
  35.  
  36.  
  37. user = www-data
  38. group = www-data
  39. listen = /var/run/php5-fpm.sock
  40. listen.owner = www-data
  41. listen.group = www-data
  42. listen.mode = 0660
RAW Paste Data