Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name api.funleak.app;
  4. root /home/vagrant/Code/funleak.com/public;
  5.  
  6. index index.php;
  7.  
  8. charset utf-8;
  9.  
  10. location / {
  11. try_files $uri $uri/ /index.php?$query_string;
  12. }
  13.  
  14. location = /favicon.ico { access_log off; log_not_found off; }
  15. location = /robots.txt { access_log off; log_not_found off; }
  16.  
  17. access_log off;
  18. error_log /var/log/nginx/funleak.app-error.log error;
  19.  
  20. error_page 404 /index.php;
  21.  
  22. sendfile off;
  23.  
  24. location ~ \.php$ {
  25. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  26. fastcgi_pass unix:/var/run/php5-fpm.sock;
  27. fastcgi_index index.php;
  28. include fastcgi_params;
  29. }
  30.  
  31. location ~ /\.ht {
  32. deny all;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement