installing ssl certificate on apache server for django project

Solutions on MaxInterview for installing ssl certificate on apache server for django project by the best coders in the world

showing results for - "installing ssl certificate on apache server for django project"
Michele
23 Jun 2017
1sudo apt-get update
2
3sudo apt-get install software-properties-common
4
5sudo add-apt-repository universe
6
7sudo add-apt-repository ppa:certbot/certbot
8
9sudo apt-get update
10
11sudo apt-get install certbot python-certbot-apache
12
13note:yourfilename.conf should be your apache config file 
14  
15sudo nano /etc/apache2/sites-available/yourfilename.conf
16
17note: add the domain  name in your apache .conf file 
18note: comment out the 3wsgi commands in .conf file 
19
20servername www.example.com
21
22note:save it and run the following commands
23
24cd
25
26sudo certbot --apache
27
28note:your are in install process so complet it
29
30note:and the certificates are installed and now make the following changes
31
32sudo nano /etc/apache2/sites-available/yourfilename.conf
33
34note:remove all django commands from the files u created except the ones created by cbot
35
36sudo nano /etc/apache2/sites-available/yourfilename-le-ssl.conf
37
38note:uncomment the 3 wsgi commands from the nw file
39
40sudo ufw allow ufw https
41
42sudo service apache2 restart
43
44your done
45