Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen 443 ssl;
  4. root /home/vagrant/www/speedygonzales/code;
  5.  
  6. server_name speedy.dev;
  7.  
  8. index index.php index.html;
  9.  
  10. access_log /var/log/nginx/speedygonzales.access.log combined;
  11. error_log /var/log/nginx/speedygonzales.error.log;
  12.  
  13. location ^~ /resources/static/ {
  14. allow all;
  15. }
  16.  
  17. location ^~ /saml/ {
  18. allow all;
  19. }
  20.  
  21. location ~ ^/.+\/ {
  22. deny all;
  23. }
  24.  
  25. location / {
  26. try_files $uri $uri/ =404;
  27. }
  28.  
  29. location ~ \.php$ {
  30. include snippets/fastcgi-php.conf;
  31. fastcgi_pass unix:/var/run/php5-fpm.sock;
  32. }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement