nginx call php and node.js by route forward

sudo apt-get install php5-fpm sudo vim /etc/php5/fpm/php.ini

cgi.fix_pathinfo=0<br></br>safe_mode = Off

restart php fpm

sudo service php5-fpm restart

generate php file path

mkdir /usr/share/nginx/www

vim $CKFINDER/config.php

$baseUrl = '';<br></br>$baseDir = '/PATH/FOLDER/IMAGES';

i have no idea, why there is images floder more.
but, it works

chmod 777 $FOLDER_PATH

### edit nginx

server {<br></br> listen 80;<br></br> root /usr/share/nginx/www;<br></br> location ~ .php$ {<br></br> try_files $uri =404;<br></br> fastcgi_pass unix:/var/run/php5-fpm.sock;<br></br> fastcgi_index index.php;<br></br> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br></br> include fastcgi_params;<br></br> }<br></br><br></br> location / {<br></br> proxy_set_header X-Real-IP $remote_addr;<br></br> proxy_pass;<br></br> proxy_set_header X-Forwarded-For $remote_addr;<br></br> proxy_http_version 1.1;<br></br> proxy_set_header Upgrade $http_upgrade;<br></br> proxy_set_header Connection "upgrade";<br></br> proxy_set_header Host $host;<br></br> }<br></br><br></br>}

- ref,


Web developer, focus on website fullstack, special JavaScript, and love sharing developing experience and communicate with developers.