Dear TurkerTunali…
Thank you very much for replying, I appreciate that …
I reinstall ERPNEXT again I used Ubuntu 20.04… I Installed it by my self…
I have made screenshots of the SSL install steps and they are all in front of you now…
1…
2…
3…
4…
5…
6…
What does “sudo service nginx status” show?
until now I can access to my domain new7.-----.com:8000 But it is not secure … If I write https://new7.-----.com I will see …
I hope you have the perfect solution …
Thank you very much
In this article, I have explained in the last section the method to configure an SSL certificate.
Using these steps I have done more than 30 installations without error. So I have provided the step-by-step guide in this article.
You are confusing yourself with having a website run on a different port number and using SSL
SSL is used on 443 and what I see is you have to clean the whole setup.
Move site to 80 or 443 port.
then let certbot create the certificate for you and update the nginx config, you should do it manually only when you know what your doing and for that nginx config understanding is needed.
From your thread, I see that your certificate which is generated is assigned in the default config to the domain name that you linked it to while your site is on different port. Which means there are 2 configuration for nginx
which is for ssl cert
For site using port 8000
If you need to make use of automated tools then enable multi-tenant on bench.