Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- root /vagrant/tripod/public;
- index index.html index.php;
- # Make site accessible from ...
- server_name tripod.dev;
- access_log /var/log/nginx/vagrant.com-access.log;
- error_log /var/log/nginx/vagrant.com-error.log warn;
- charset utf-8;
- location / {
- try_files $uri $uri/ /index.php;
- }
- location = /favicon.ico { log_not_found off; access_log off; }
- location = /robots.txt { access_log off; log_not_found off; }
- error_page 404 /index.php;
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- # fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- # fastcgi_param HTTPS off;
- }
- # Deny .htaccess file access
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement