Task: Setup SSL for Nginx

Dear friends
@player001
@andrzej
@andybubune
@Lalit
@Inderpreet
@vijin.palazhi
@kodekloud-support3
I am stuck with this task, need your help or suggestions completing the task.
task

  1. Install and configure nginx on App Server 2.
    followed the steps from this article
    https://www.tecmint.com/install-nginx-on-centos-7/
    for configure nginx:
    https://www.server-world.info/en/note?os=CentOS_7&p=nginx&f=4
    image

  2. On App Server 2 there is a self signed SSL certificate and key present at location /tmp/nautilus.crt and /tmp/nautilus.key . Move them to some appropriate location and deploy the same in Nginx.

  3. Create an index.html file with content Welcome! under Nginx document root.

followed the steps from this article


unable to verify or validate the correctness of this task

Please check and advise. thank you
Swaroop

where we have to check?


in this thread I posted my steps
@player001
Please check and advise

@swaroopcs88 the server_name should not include the http etc. It should be just hostname or IP. Further make sure the certificate path you mention in the conf is correct.

hello all firends
i have a problem in ssh for nginx i have to perform some actions in this which i have performed well but i stuck on an aciton in which i have to create an index.html file in document root of nginx there is already a index.html file on that folder which was usr/share/nginx/html but i couldn’t open that file it is written in red color its a symbolic file i think so now what i should do remove it or create my index.html file or i have to do some other thing kindly advice snap of this is attached
thanks
tariq

I copied SSL certificate and key to steve/cert folder.
will this work?




Just updating above settings will it deploy on nginx?
3. Create an index.html file with content Welcome! under Nginx document root.
Not getting an idea to perform this task. any suggestions or link that can help me?
Thanks
Swaroop

Hi Tej, @player001
Please check and advise.

you have create a index.html file in nginx document root path --> /usr/share/nginx/html .
move this cert and key to appropriate location sometimes permission issues may be occur.
This link will be help you to understand more.
https://serverfault.com/questions/259302/best-location-for-ssl-certificate-and-private-keys-on-ubuntu

thanks,

make sure write correct content in index.html --> Welcome!

Hi Tej,

task 2:
On App Server 1 there is a self signed SSL certificate and key present at location /tmp/nautilus.crt and /tmp/nautilus.key . Move them to some appropriate location and deploy the same in Nginx.



task 3:
Create an index.html file with content Welcome! under Nginx document root.


should i make changes here?

yeah change that content of index.html and put ssl cert & key /etc/ssl/ .