created apache2 configuration
This commit is contained in:
parent
bb2d2b7124
commit
ba112f7166
3 changed files with 1 additions and 0 deletions
26
apache2/004-django.conf
Normal file
26
apache2/004-django.conf
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
WSGIScriptAlias / /var/www/sciodog.fr/sciodog/wsgi.py
|
||||
WSGIPythonHome /var/www/sciodog.fr/venv
|
||||
WSGIPythonPath /var/www/sciodog.fr
|
||||
|
||||
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
|
||||
Alias /static /var/www/sciodog.fr/blog/static/
|
||||
|
||||
<Directory /var/www/sciodog.fr/blog/static>
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<VirtualHost *:80>
|
||||
ServerName sciodog.fr
|
||||
|
||||
<Directory /var/www/sciodog.fr/sciodog>
|
||||
<Files wsgi.py>
|
||||
Require all granted
|
||||
</Files>
|
||||
</Directory>
|
||||
LogLevel info
|
||||
ErrorLog /var/log/apache2/django-error.log
|
||||
CustomLog /var/log/apache2/django-access.log combined
|
||||
RewriteEngine on
|
||||
RewriteCond %{SERVER_NAME} =sciodog.fr
|
||||
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
||||
</VirtualHost>
|
||||
Loading…
Add table
Add a link
Reference in a new issue