Advertisement
Guest User

Untitled

a guest
Dec 28th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. server {
  2. root /var/www;
  3. server_name boh.dev;
  4.  
  5. location / {
  6. index index.php index.html index.htm;
  7. autoindex on;
  8.  
  9. location ~ ^/(.+\.php)$ {
  10. try_files $uri =404;
  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 /etc/nginx/fastcgi_params;
  15. fastcgi_buffer_size 128k;
  16. fastcgi_buffers 256 4k;
  17. fastcgi_busy_buffers_size 256k;
  18. fastcgi_temp_file_write_size 256k;
  19. fastcgi_intercept_errors on;
  20. }
  21. }
  22.  
  23. location ~ ^/~(.+?)(/.*)?$ {
  24. alias /home/$1/www$2;
  25. autoindex on;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement