-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.vhost
More file actions
29 lines (22 loc) · 1017 Bytes
/
example.vhost
File metadata and controls
29 lines (22 loc) · 1017 Bytes
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
WSGIPythonPath /home/trattentracker/git:/home/trattentracker/git/lib/python3.4/site-packages
<VirtualHost *>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /home/trattentracker/git/assets/
LogLevel info
WSGIScriptAlias /rest /home/trattentracker/git/trattrack/wsgi_prod.py
WSGIScriptAlias /admin /home/trattentracker/git/trattrack/wsgi_prod.py
Alias /robots.txt /home/trattentracker/git/assets/robots.txt
Alias /static/admin /home/trattentracker/git/assets/admin/
<Directory /home/trattentracker/git/assets>
Require all granted
</Directory>
<Directory /home/trattentracker/git/trattrack>
<Files wsgi_prod.py>
Require all granted
</Files>
</Directory>
ErrorLog "/var/log/apache2/trattentracker_error.log"
WSGIDaemonProcess trattrack.wsgi.application user=trattentracker group=trattentracker python-path=/home/trattentracker/git:/home/trattentracker/git/lib/python3.4/site-packages
WSGIProcessGroup trattrack.wsgi.application
</VirtualHost>