HostOnNet Blog

Tag Archives: Nginx

nginx wordpress

Here is nginx config for wordpress on Ubuntu 16.04 nginx


Enable PHP-FPM in Nginx on Ubuntu/Debian

Lets start with install nginx. Restart nginx with command Now you will be able to visit server with IP address, will see default page like Nginx config for default web site is at /etc/nginx/sites-enabled/default, if you remove all comments, it


Nginx Geoip

To enable GeoIP module on nginx, first install geoIP module. This you can install it with your system package manager or download from maxmind. GeoLite Legacy Downloadable Databases On Ubuntu 16.04, i installed GeoIP with command Now edit nginx.conf Find


Nginx Commands

Test Nginx Configuration Reload Nginx nginx start nginx nginx -s reload Graceful restart nginx nginx -s stop stop nginx nginx -t Test nginx configuration nginx -T Test and dump nginx configuration


php-fpm use socket

By default php-fpm listen on tcp port 9000. It is better to use socket instead of tcp as it is less overhead. To change, edit file Find Replace with Now edit nginx config. Find replace with Now restart nginx and


110: Connection timed out while reading response header from upstream

On Nginx + PHP-FPM server, some times site failed with 500 Internal Error. On checking nginx error log, found following error The error says “while reading response”, so it is a read_timeout. Nginx have 2 read timeout’s. proxy_read_timeout fastcgi_read_timeout Both


Nginx List Installed Modules

To list all installed modules in NginX web server, run Example [root@3blogger ~]# nginx -V nginx version: nginx/1.10.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI support enabled configure arguments:


Install Nginx on CentOS 7

First enable epel repository by running Now you can install nginx with Nginx configs are available in folder /etc/nginx, main config file is /etc/nginx/nginx.conf To start nginx, run To Stop, run To allow HTTP and HTTPS in firewall, run


Nginx

Install Nginx on CentOS 7 Enable SSL in Nginx Nginx List Installed Modules NGINX Unit – Application Server from Nginx EnginTron – Nginx for Cpanel Servers. (on cpanel.com) NginxCP – nginx for cpanel server Nginx Geoip Nginx WordPress config Nginx


Windows VS Linux: learn from Microsoft

Today i got email from Mirosoft about their cloud service. I clicked on one of the links and i got this. They got some problem with their web server. The interesting thing is they use nginx web server, that run