i recently followed the entire tutorial on how to secure nginx with letsencrypt : https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

but now my website is showing “Welcome to Nginx”

HELP NEEDED

thanks

2 comments

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.

×
1 answer

I have the same problem. Can’t figure it out. Any help is appreciated.

  • hey, sorry i should have mentioned the answer to this question when i got it done for me. anyways. here is the solution :

    in => /etc/nginx/sites-available/default
    do not replace your => server_name with “your domain.com” keep it as “under scope” ( _ )

    ....
    server_name _;
    ....

Submit an Answer