Posts

Showing posts from July, 2017

Hosting node.js applications in IIS

Image
Hosting node.js applications in IIS Setup new site on IIS web server and bind your domain name on node application directory path. Setup Url Rewrite rule of Reverse proxy for your node application port. (Like 3000 or any)  From above screen shot, you can add Reverse proxy rule directly from IIS Manager or You can put below configuration in web.config. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="ReverseProxyInboundRule1" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{CACHE_URL}" pattern="^(https?)://" /> </conditions> <action type="Rewrite" url="{C:1}://localhost:3000/{R:1}&qu

Multiple PHP version on the same server using php-fpm on Ubuntu16.04

Image
Run multiple PHP version on the same server using php -fpm on Ubuntu16.04 After some Google research and some my modification this solution finally worked for me: Install PHP 5.6, 7.0 and 7.1 as fpm Install php 5.6 , php 7.0 and php7.1 fpm sudo su add-apt-repository ppa:ondrej/php apt-get update apt-get install libapache2-mod-fastcgi php5.6 php5.6-fpm php5.6-dev php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-zip php5.6-gd php5.6-xml php5.6-curl php5.6-intl php5.6-json php7.0 php7.0-fpm php7.0-dev php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-zip php7.0-gd php7.0-xml php7.0-curl php7.0-intl php7.0-json php7.1 php7.1-fpm php7.1-dev php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-zip php7.1-gd php7.1-xml php7.1-curl php7.1-intl php7.1-json Enable all necessary Apache modules: a2enmod actions a2enmod fastcgi Making PHP-FPM use By default PHP-FPM is listening on the socket /var/run/php/php7.0-fpm.sock. It is also possible to make PHP-FPM use a TCP connection