Python Forum
Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet)
#3
(Jan-23-2018, 09:11 PM)nilamo Wrote: You shouldn't be using runserver or manage.py with ssl. You just did all that apache config, so why wouldn't you use apache?

The error is telling you that it (the development server) doesn't support https. So don't use the development server anymore.
Thank you nilamo for suggesting to not run Django in development mode. I found a helpful guide called, How To Serve Django Applications with Apache and mod_wsgi on Ubuntu 14.04, on DigitalOcean which demonstrates well how to run Django using mod_wsgi.

The issue I have now is that I still have an Apache public_html folder which is still serving its contents, rather than Django's. See here: www.angeles4four.info.

Is it possible to concurrently have Apache serve public_html's contents AND have Django deployed and accessible in a sub directory? For example instead of serving the Django home page at www.angeles4four.info , how could I arrange Django to load at www.angeles4four.info/cel2fah or something like that?
Reply


Messages In This Thread
RE: Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet) - by Drone4four - Jan-26-2018, 06:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Apache Module jfha73 2 720 Jan-26-2024, 07:59 PM
Last Post: noisefloor
  deploying python script on a server rickyrt 0 1,551 Aug-31-2021, 04:03 PM
Last Post: rickyrt
  Flask Ubuntu Server Not Running Wheel 0 2,077 Jul-14-2020, 08:12 PM
Last Post: Wheel
  Where is mod_wsgi for Apache on Windows? jfha73 0 1,691 May-01-2020, 02:21 PM
Last Post: jfha73
  Django deployment on apache server? tmmaersk 2 2,222 Mar-28-2020, 03:35 PM
Last Post: tmmaersk
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,492 Jun-30-2019, 12:21 AM
Last Post: scidam
  How to deploy Django application on Apache2 server deepag 0 2,113 Jan-23-2019, 05:09 AM
Last Post: deepag
  Python handling Apache Request harzsr 3 3,944 Nov-16-2018, 04:36 AM
Last Post: nilamo
  Enable error logging to browser for Python's Flask under Apache + mod_wsgi nikos 1 3,157 Sep-18-2018, 09:15 PM
Last Post: nikos
  Trouble deploying Django/wagtail on Ubuntu 14.04 Drone4four 0 2,859 Mar-20-2018, 04:14 AM
Last Post: Drone4four

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020