28 Nisan 2024 17:16

Anasayfa

undefined...

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 - 2022