Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. server {
  2. root /var/www/foo;
  3. server_name #edited out#;
  4.  
  5. location / {
  6. index index.php index.html index.htm;
  7. try_files $uri /index.php?$query_string;
  8. }
  9. location ~ \.php$ {
  10. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  11. fastcgi_pass unix:/var/run/php5-fpm.sock;
  12. fastcgi_index index.php;
  13. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  14. include fastcgi_params;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement