Advertisement
Guest User

Untitled

a guest
Mar 4th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. [cut]server {
  2. listen 80;
  3. listen [::]:80 ipv6only=on;
  4.  
  5. server_name $host;
  6. index index.html index.php;
  7. root /var/www/$host;
  8.  
  9. error_page 404 /404.html;
  10.  
  11. location / {
  12. try_files $uri $uri/ =404;
  13. }
  14.  
  15. location ~ \.php$ {
  16. try_files $uri $uri/ = 404;
  17. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  18. fastcgi_cache fastcgi_cache;
  19. fastcgi_cache_valid 200 301 302 30s;
  20. fastcgi_cache_use_stale updating error timeout invalid_header http_500;
  21. fastcgi_pass unix:/var/run/php5-fpm.sock;
  22. fastcgi_index index.php;
  23. include fastcgi_params;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement