Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name cloudstore.loc;
- index index.php index.html index.htm;
- set $root_path '/home/dogmar/www/cloudstore/public';
- root $root_path;
- try_files $uri $uri/ @rewrite;
- location @rewrite {
- rewrite ^/(.*)$ /index.php?_url=/$1;
- }
- location ~ \.php {
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index /index.php;
- include /etc/nginx/fastcgi_params;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
- root $root_path;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement