Guest User

Untitled

a guest
Mar 25th, 2014
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 80;
  3. server_name www.laketi.pl laketi.pl;
  4. set $root_path '/var/www/laketi.pl/public';
  5. root $root_path;
  6.  
  7. access_log /var/log/nginx/laketi.pl-access.log;
  8. error_log /var/log/nginx/laketi.pl-error.log error;
  9.  
  10. index index.php index.html index.htm;
  11.  
  12. try_files $uri $uri/ @rewrite;
  13.  
  14. location @rewrite {
  15. rewrite ^/(.*)$ /index.php?_url=/$1;
  16. }
  17.  
  18. location ~ \.php {
  19. fastcgi_index /index.php;
  20. #fastcgi_pass 127.0.0.1:9000;
  21. fastcgi_pass unix:/var/run/php5-fpm.sock;
  22. include fastcgi_params;
  23. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  24. fastcgi_param PATH_INFO $fastcgi_path_info;
  25. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27. }
  28.  
  29. location ~* ^/(css|fonts|img|js|min)/(.+)$ {
  30. root $root_path;
  31. }
  32.  
  33. location ~ /\.ht {
  34. deny all;
  35. }
  36. }
RAW Paste Data