Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name www.laketi.pl laketi.pl;
- set $root_path '/var/www/laketi.pl/public';
- root $root_path;
- access_log /var/log/nginx/laketi.pl-access.log;
- error_log /var/log/nginx/laketi.pl-error.log error;
- index index.php index.html index.htm;
- try_files $uri $uri/ @rewrite;
- location @rewrite {
- rewrite ^/(.*)$ /index.php?_url=/$1;
- }
- location ~ \.php {
- fastcgi_index /index.php;
- #fastcgi_pass 127.0.0.1:9000;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- include 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|fonts|img|js|min)/(.+)$ {
- root $root_path;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement