Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. root /var/www/site;
  5. index index.php index.html index.htm;
  6. server_name _;
  7. autoindex on;
  8. access_log off;
  9.  
  10. # Kirby Specific Directories
  11. rewrite ^/site/(.*) /error permanent;
  12. rewrite ^/kirby/(.*) /error permanent;
  13.  
  14. location ~ .php {
  15. fastcgi_pass unix:/var/run/php5-fpm.sock;
  16. fastcgi_index index.php;
  17. include fastcgi_params;
  18. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19. fastcgi_param PATH_INFO $fastcgi_script_name;
  20. fastcgi_buffer_size 128k;
  21. fastcgi_buffers 256 16k;
  22. fastcgi_busy_buffers_size 256k;
  23. fastcgi_temp_file_write_size 256k;
  24. include fastcgi_params;
  25. }
  26.  
  27. location / {
  28. try_files $uri $uri/ /index.php?$query_string;
  29. }
  30.  
  31. location ~* .(?:xml|ogg|mp3|mp4|ogv|svg|svgz|eot|otf|woff|ttf|css|js|jpg|jpeg|gif|png|ico)$ {
  32. try_files $uri =404;
  33. expires max;
  34. access_log off;
  35. add_header Pragma public;
  36. add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement