Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name localhost;
- root /usr/share/nginx/html;
- index index.php index.html index.htm;
- try_files $uri $uri/ @rewrite;
- location @rewrite {
- rewrite ^/(.*)$ /index.php?_url=/$1;
- }
- location ~ \.php$ {
- fastcgi_pass unix:/opt/remi/php56/root/var/run/php-fpm/www.sock;
- #fastcgi_pass unix:/var/opt/remi/php70/run/php-fpm/www.sock;
- fastcgi_index index.php;
- 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|img|js|flv|swf|download)/(.+)$ {
- root $root_path;
- }
- location ~ /\.ht {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement