Here is my nginx.conf file. I m not able to configure -
It is strange that I can’t stop nginx service by service or systemctl command.
Here is the screenshots. I moved nautilus.crt & nautilus.key files to those folder. I tried to link with /tmp folder and giving the owner ship, but no luck
Is it possible for you to share your task details. I think, in /etc/nginx/nginx.conf file, you have to change the listen port as asked in the task for the server and also specify the location for the root. Please try and let me know.
On App Server X 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.
Create an index.html file with content Welcome! under Nginx document root.
For final testing try to access the App Server 1 link (either hostname or IP) from jump host using curl command. For example curl -Ik https://<app-server-ip>/
I don’t know where to move the certificate & key file. So what I did is that
1st configure in nginx.conf file to link/point the location of the file like ssl_certificate "/tmp/nautilus.crt" (That didn’t work. here I was getting error of not able to load crt, I change the ownership of the folder but this time it is able to load but not able to connect)
2nd I moved those files to the mentioned location which is (by default) given in the nginx.config file. (That also didn’t work)
I guess as the task mentioned to access https://...., so I configured Listen port 443 for https section.
Default root location is already given in nginx.config file.(I didn’t change anything, though I tried & configure in the nginx.conf file a different location /var/www/; & put the index file there; that also didn’t work) . I just added the next line index index.html & created one index.html file there with the content.
Thanks. Somehow I managed to complete. I followed all my steps as I was doing only thing I didn’t do this time is - I didn’t start nginx service after installation. I configured all and then I started the nginx, and then it worked.
Not sure, why this behavior as after starting the nginx service, if there is anything thing missing or wrong. It was not stopped at all. I tried to kill the process as well. Even the configuration was right at the end, the right config file was not properly loaded.
I am getting an error message while editing the index.html.
any suggestions please. should I give any permissions to this file before editing?
the error says it is a linked file, i think it is pointing to …/…/doc/HTML/index.html file.
No, Just update it in the section, where you made the configuration and you don’t need to configure all server section actually for this problem.
Other configurations are commented. If you change it, then you need to update; otherwise updating the mentioned section would be ok.
I was able to finish the task successfully.
thanks for your help. @Inderpreet thank you for helping me with symbolic link issue.
saved my 300 points. thanks again.
btw, restarting nginx service helped me in my last try.
one doubt. as it was pointing to port 443 when trying to curl -Ik https://172.16.238.10/.
am I supposed to update below section of nginx conf file to allow connection?