Nginx (pronounced "engine x") is software to provide a web server. It can act as a reverse proxy server for TCP, UDP, HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer and an HTTP cache.
Nginx setup in reverse will boost up cPanel/WHM Server. cPanel does not officially support nginx yet but we can set up nginx on cPanel using NginxCP installation script , which provide good performance with cPanel Servers.
Nginx setup in reverse proxy support static contents like css, images, swf file , javascript etc and forward the remaining dynamic requests to apache web server, that the process called as Nginx reverse proxy and Nginx behaves like front end server.
Lets start the NginxCP installation
To install the server script access the SSH with root account and execute the commands as follows:
- Go into the directory through below command:
# cd /usr/local/src
- Download nginxadmin package through below command .
# wget http://nginxcp.com/latest/nginxadmin.tar
- Extract the nginxadmin.tar in the same path
# tar xf ngnixadmin.tar
- After extract the publicnginx folder will be create in the same path and go to this directory.
# cd publicnginx
- Now run the ngnix installer script through below command
# ./ngnixinstaller install
Lets start the NginxCP installation
To install the server script access the SSH with root account and execute the commands as follows:
- Go into the directory through below command:
# cd /usr/local/src
- Download nginxadmin package through below command .
# wget http://nginxcp.com/latest/nginxadmin.tar
- Extract the nginxadmin.tar in the same path
# tar xf ngnixadmin.tar
- After extract the publicnginx folder will be create in the same path and go to this directory.
# cd publicnginx
- Now run the ngnix installer script through below command
# ./ngnixinstaller install