Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- root /var/www;
- server_name boh.dev;
- location / {
- index index.php index.html index.htm;
- autoindex on;
- location ~ ^/(.+\.php)$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 256 4k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- fastcgi_intercept_errors on;
- }
- }
- location ~ ^/~(.+?)(/.*)?$ {
- alias /home/$1/www$2;
- autoindex on;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement