-
Notifications
You must be signed in to change notification settings - Fork 0
/
mytaxaccountant.conf
52 lines (42 loc) · 1.7 KB
/
mytaxaccountant.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<VirtualHost *:80>
ServerName mylieutenantguillaume.com
ServerAdmin ict@lieutenantguillaume.com
Alias /favicon.ico /var/www/MyTaxAccountant/static/favicon.ico
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# This is optional, in case you want to redirect people
# from http to https automatically.
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
<VirtualHost *:443>
ServerName mylieutenantguillaume.com
ServerAdmin ict@lieutenantguillaume.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /robots.txt /var/www/MyTaxAccountant/static/robots.txt
Alias /favicon.ico /var/www/MyTaxAccountant/static/favicon.ico
Alias /media/ /var/www/MyTaxAccountant/media/
Alias /static/ /var/www/MyTaxAccountant/static/
# Django Application
WSGIScriptAlias / /var/www/MyTaxAccountant/mta/wsgi.py
<Directory /var/www/MyTaxAccountant/mta>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
<Directory /var/www/MyTaxAccountant/static>
Require all granted
</Directory>
<Directory /var/www/MyTaxAccountant/media>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
WSGIProcessGroup mylieutenantguillaume.com
WSGIDaemonProcess mylieutenantguillaume.com python-path=/usr/local/lib/python3.5/dist-packages/,/usr/local/lib/python3.5/site-packages:/var/www/MyTaxAccountant
SSLEngine on
SSLCertificateFile /etc/apache2/server.crt
SSLCertificateKeyFile /etc/apache2/server.key
</VirtualHost>