Advertisement
Guest User

Untitled

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