06 Temmuz 2019 10:27

Erdem K.

Django

Apache WSGI ile Django projesini SSL ile yayınlamak

Anasayfa

Django

Apache WSGI ile Django projesini SSL ile yayınlama...

Apache üzerinde WSGI modülü ile Django projesini SSL ile yayınlamak için örnek Apache conf ayarları

 

<VirtualHost *:443>
DocumentRoot "/home/muslu/django/projeadi/"
ServerName projeadi.biz
ServerAlias www.projeadi.biz
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/projeadi.biz/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/projeadi.biz/privkey.pem
WSGIScriptAlias / /home/muslu/django/projeadi/projeadi/wsgi.py
WSGIDaemonProcess projeadi python-path=/usr/local/lib/python3.6/dist-packages/:/home/muslu/django/projeadi
WSGIProcessGroup projeadi
WSGIApplicationGroup %{GLOBAL}
ErrorLog /home/muslu/django/projeadi/error.log
<Directory /home/muslu/django/projeadi/>
Require all granted
</Directory>
<Directory /home/muslu/django/projeadi/projeadi/>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
Alias /static /home/muslu/django/projeadi/static/
<Directory /home/muslu/django/projeadi/static/>
Require all granted
</Directory>
</VirtualHost>

 

 

Django

hakkında diğer konular

Makdos Bilişim Teknolojileri 2015 - 2025