By lavrikrom2
I set up django app following the next tutorial Django app
I configured all DNS records and it works fine.
I set up lets encrypt sertificate.
So, the problem is that certificate works fine on link with www.domain.net, but I get 403 forbidden. In the same time domain.net(without www) works fine, but it hasn’t SSL. How can I fix that?
Would be very grateful if somebody can help. Thanks.
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!
Hi there @lavrikrom2,
It sounds like that your SSL Nginx Server block is not correct.
Can you share the content of both your Nginx Server Blocks for port 80 and 443 here so that I could advise you further on what the problem could be?
The two files are stored at the following folder:
/etc/nginx/sites-enabled
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.