Create a a full website in AWS using the ec2 instance + Nginx + letsencrypt free ssl certificate.

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • 1] In this viedo we will launch a new ec2 instance and on that we will install a nginx as a web server for hosting the website.
    2] Then fisrt we will run our webiste on 80 port without ssl certificate
    3] Then we will install certbot letsencrypt (free ssl certificate) for our website.
    4] Nginx installation command :-
    apt update
    apt install nginx
    5] Nginx configration file for 80 :-
    server {
    listen 80;
    server_name shivm04.xyz; # Edit this to your domain name
    client_max_body_size 100M;
    index index.html index.php;
    root /var/www/html/shivm04.xyz/; # change your code directory
    access_log /var/log/nginx/shivm04.xyz/access.log; #Add ssl access log file on the server
    error_log /var/log/nginx/shivm04.xyz/error.log; #Add ssl error log file on the server
    }
    6] certbot install command :-
    sudo apt update
    sudo apt install certbot python3-certbot-nginx
    7] Generate a free ssl for your website :-
    sudo certbot --nginx -d shivm04.xyz
    If you facing any challenges please let me know in the comment.

ความคิดเห็น • 8

  • @abhinavsingh4221
    @abhinavsingh4221 หลายเดือนก่อน

    Thanks for this awesome tutorial

  • @theanonymous92
    @theanonymous92 20 วันที่ผ่านมา

    Thank you so much, that was great tutorial

  • @mallikarjunhagargi7830
    @mallikarjunhagargi7830 3 หลายเดือนก่อน +1

    Can you explain when application load balancer is in place and how to add certificate so that all the nodes are accessible via https

  • @CesarCorona-d7p
    @CesarCorona-d7p 9 หลายเดือนก่อน

    omg this works like a charm. 😀😀, very nice

  • @mohsinm.chaudary656
    @mohsinm.chaudary656 ปีที่แล้ว

    very nice bro ..

  • @smitdarji4639
    @smitdarji4639 5 หลายเดือนก่อน

    i have html project so what is nginx file?

  • @onkarsarang2239
    @onkarsarang2239 11 หลายเดือนก่อน

    Worked