Advertisement
Guest User

Untitled

a guest
May 4th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name cloudstore.loc;
  4.  
  5. index index.php index.html index.htm;
  6. set $root_path '/home/dogmar/www/cloudstore/public';
  7. root $root_path;
  8.  
  9. try_files $uri $uri/ @rewrite;
  10.  
  11. location @rewrite {
  12. rewrite ^/(.*)$ /index.php?_url=/$1;
  13. }
  14.  
  15. location ~ \.php {
  16. fastcgi_pass unix:/var/run/php5-fpm.sock;
  17. fastcgi_index /index.php;
  18.  
  19. include /etc/nginx/fastcgi_params;
  20.  
  21. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  22. fastcgi_param PATH_INFO $fastcgi_path_info;
  23. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  24. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  25. }
  26.  
  27. location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
  28. root $root_path;
  29. }
  30.  
  31. location ~ /\.ht {
  32. deny all;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement