Linux

How to enable SSL certificate on Nginx

First of all, you have to check if your webserver version supports SSL. If SSL is not enabled in your server read more here If the SSL module is installed in your Nginx instance then you have a few simple steps to follow. Generate Certificate Signing Request (CSR) Generate private key Login into the server […]

Recompile Nginx

Create backups for all Nginx files. “cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx_old” “cp /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf.old” Download all sources and dependencies for Nginx #You can check previous configuration parameters by nginx -V #Download all needed sources wget http://nginx.org/download/nginx-1.6.3.tar.gz wget https://github.com/pagespeed/ngx_pagespeed/archive/v1.9.32.10-beta.tar.gz wget https://github.com/openresty/headers-more-nginx-module/archive/v0.28.tar.gz nginx-headers.tar.gz wget https://dl.google.com/dl/page-speed/psol/1.9.32.10.tar.gz #Extract them tar -zxvf file.tar.gz Configure the compilation with custom parameters. You can even […]