Install Nginx and Setup

@Sasi is the lab for setting up Nginx as reverse proxy ? If so you need to make sure its configured properly so that it can pass request to Apache web server and can serve the code from Apache’s document root.

Task is Setup SSL for Nginx not the reverse proxy.

@Sasi Point 3. of question states that

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

So if your curl was not returning this correct content then either you created index.html file at wrong location or your nginx config was using wrong document root.

@Sasi,

From your screen shots I can see you moved the certificate and keys to the location /etc/pki/tls/certs . But in the nginx.conf file you updated the locations as /etc/pki/nginx/server.crt for ssl_certificate and /etc/pki/nginx/private/server.key for ssl_certificate_key which may cause the failure.

image
image

i already got his task working. your right at some point i had default paths in config file then i realized and changed to correct path

Hi @Sasi can you help me take a look at this error