Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- root /mnt/vbshared/pg.l;
- index index.php;
- server_name pg.l;
- location / {
- try_files $uri $uri/ /index.html;
- }
- error_page 404 /404.html;
- location ~ \.php$ {
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- location ~ /\. {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement