login to ssh as root user and execute following commands
* download latest stable version of nginx from nginx.org/en/download.html
tar -xf nginx-*
./configure --prefix=/usr/local/nginx --with-http_realip_module
make && make install
* make sure to install pcre-devel and openssl-devel
now copy nginx default conf to /etc/nginx
mkdir -p /etc/nginx
cp /usr/local/nginx/etc/nginx.conf /etc/nginx
and add following directives
to start nginx use this command nginx -c /etc/nginx/nginx.conf
* replace xx.xx.xx.xx with your reverse proxy IP.
* this is just an idea on how to compile nginx I know there is a better to configure nginx feel free to discuss that with our support staff.
Powered by WHMCompleteSolution