Question

How to configure apache.conf file after SSL certification to point to the Django files?

Posted November 1, 2018 655 views
ApacheDjangoUbuntu 16.04

Hi, after getting an error mail related to renewing Certificate, steps were followed from below link

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-en

The encryption went fine as mentioned at the end of this link, but I can see the default page coming up which is in /var/www/HTML and it shows up apache ubuntu default page in my hosted address,
How do I fix this and get my earlier site working up the way it was.

Please help me.

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

Hello,

I believe that you would need to adjust your Apache Virtual Host so that it forwards the traffic to your Django application.

I would recommend following the steps here on how to do that:

https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-16-04

Regards,
Bobby

by Justin Ellingwood
Django is a powerful web framework that can help you get your Python application or website off the ground quickly. Django includes a simplified development server for testing your code locally, but for anything even slightly production related, a more secure and powerful web...
Submit an Answer