Browsed by
Category: Nginx

Nginx Server Notes

Nginx Server Notes

I struggled a lot to understand nginx during my first assignments in nginx configurations for one of the angular deployments and little interesting things in it. I captured as much as possible in this post to help someone who is like me!! Below entries are added to nginx.conf file which usually exist in /etc/nginx/nginx.conf Basic commands: sudo service nginx start – to start nginx server sudo service nginx stop – to stop nginx server sudo service nginx status – returns…

Read More Read More

707 total views, 2 views today

IP Canonicalization in Nginx Http/Https

IP Canonicalization in Nginx Http/Https

IP Canonicalization in Nginx Http/Https: IP canonicalization is to redirect IP Address to the domain. This actually a part of SEO, so good to have IP canonicalization, but you can’t achieve this using shared web hosting. IP Canonicalization in Nginx Http/Https: Add the below block to above of your default server block in your nginx conf file, which is default available in /etc/nginx/nginx.conf This below block works for both http and https IP canonicalization in nginx server. [code] server {…

Read More Read More

1,160 total views, 6 views today

Creating keystore.p12 from letsencrypt certificate for spring boot projects:

Creating keystore.p12 from letsencrypt certificate for spring boot projects:

Creating keystore.p12 from letsencrypt certificate for spring boot projects: Step 1: Stop your server If your server is nginx then use the below command to stop the server. sudo service nginx stop   Step 2: Generating new letsencrypt certificate This is to create the new letsencrypt certificate, if you already have one certificate then skip this step. ./certbot-auto certonly -a standalone \ -d ngdeveloper.com -d www.ngdeveloper.com -d admin.ngdeveloper.com here -d takes all this domains for this certificates, meaning the same…

Read More Read More

1,403 total views, 2 views today

How to renew letsencrypt ssl certificate in cent os aws ec2 ?

How to renew letsencrypt ssl certificate in cent os aws ec2 ?

How to renew letsencrypt ssl certificate in cent os aws ec2 ? Please go to the folder where you already installed letsencrypt (first time), path may be, /etc/letsencrypt in my case. Inside that You can find a file called letsencrypt-auto.   Run the below command inside letsencrypt-auto folder: ./letsencrypt-auto renew     Could not find letsencrypt-auto folder ? In my case it is found inĀ /letsencrypt/letsencrypt path   You can also use this below find command to search letsencrypt folder: find…

Read More Read More

798 total views, 2 views today

How to deploy angular 2/4/5/6 application from bitbucket to Nginx Server in AWS EC2

How to deploy angular 2/4/5/6 application from bitbucket to Nginx Server in AWS EC2

How to deploy angular 2/4/5/6 application from bitbucket to Nginx Server in AWS EC2: Prerequisite: Make sure you have installed following in your linux machines: Nginx server. git. Account in bitbucket (atleast in github to clone some angular app).   1. Create temp folder in root path and do git clone: sudo git clone -b my-Branch https://YOURUSERNAME@bitbucket.org/YOURUSERNAME/YOURPROJECT Here my-Branch is branch name, if you want the master to be cloned then your url will be like this, sudo git clone…

Read More Read More

879 total views, no views today