Advertisement
Guest User

Untitled

a guest
Aug 21st, 2014
521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. root /vagrant/tripod/public;
  5. index index.html index.php;
  6.  
  7. # Make site accessible from ...
  8. server_name tripod.dev;
  9.  
  10. access_log /var/log/nginx/vagrant.com-access.log;
  11. error_log /var/log/nginx/vagrant.com-error.log warn;
  12.  
  13. charset utf-8;
  14.  
  15. location / {
  16. try_files $uri $uri/ /index.php;
  17. }
  18.  
  19. location = /favicon.ico { log_not_found off; access_log off; }
  20. location = /robots.txt { access_log off; log_not_found off; }
  21.  
  22. error_page 404 /index.php;
  23.  
  24. location ~ \.php$ {
  25. try_files $uri =404;
  26. fastcgi_pass unix:/var/run/php5-fpm.sock;
  27. # fastcgi_index index.php;
  28. include fastcgi_params;
  29. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  30. # fastcgi_param HTTPS off;
  31. }
  32.  
  33. # Deny .htaccess file access
  34. location ~ /\.ht {
  35. deny all;
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement