Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. server {
  2. root /mnt/vbshared/pg.l;
  3. index index.php;
  4.  
  5. server_name pg.l;
  6.  
  7. location / {
  8. try_files $uri $uri/ /index.html;
  9. }
  10.  
  11. error_page 404 /404.html;
  12.  
  13. location ~ \.php$ {
  14. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  15. # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  16.  
  17. fastcgi_pass unix:/var/run/php5-fpm.sock;
  18. fastcgi_index index.php;
  19. include fastcgi_params;
  20. }
  21.  
  22.  
  23. location ~ /\. {
  24. deny all;
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement