Installing Nginx

after i add ssl ( port 80 and port 443 )i go to https://www.The it give (Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to Commercial support is available at Thank you for using nginx.)

and http://www.The go to (Success!The example .com server block is working!)

please advise

i go through


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
July 5, 2022

Hi @iot,

It seems to me like you don’t have a Nginx config listening for port 443 for your domain.

Usually, Let’s Encrypt should create that automatically for you and the config should be found at /etc/nginx/sites-available. Go there and see if you can spot an SSL config for your domain

If you can’t create a new config following the same pattern from the tutorial. The config should look like this:

server {
    listen              443 ssl;
    root /var/www/;
    index index.html index.htm index.nginx-debian.html;

    server_name your_domain www.your_domain;
    ssl_certificate     /path/to/SSL/CERT/;
    ssl_certificate_key  /path/to/SSL/Key/;
    location / {
            try_files $uri $uri/ =404;

Once you create the config, follow the other steps in the mentioned tutorial to finish the setup.