-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.czechia.tk.conf
35 lines (34 loc) · 1.18 KB
/
api.czechia.tk.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
<VirtualHost *:80>
ServerName api.czechia.tk
ErrorLog ${APACHE_LOG_DIR}/api.czechia.tk/error.log
CustomLog ${APACHE_LOG_DIR}/api.czechia.tk/access.log combined
WSGIScriptAlias / /home/michal/project/ovolby-api/wsgi.py
WSGIDaemonProcess vpapi_80 python-path=/home/michal/project/.virtualenvs/vpapi/lib/python3.4/site-packages
WSGIProcessGroup vpapi_80
WSGIApplicationGroup %{GLOBAL}
<Directory /home/michal/project/ovolby-api>
<Files wsgi.py>
Require method GET HEAD OPTIONS
AllowOverride None
</Files>
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName api.czechia.tk
ErrorLog ${APACHE_LOG_DIR}/api.czechia.tk/error.log
CustomLog ${APACHE_LOG_DIR}/api.czechia.tk/access.log combined
WSGIScriptAlias / /home/michal/project/ovolby-api/wsgi.py
WSGIDaemonProcess vpapi_443 python-path=/home/michal/project/.virtualenvs/vpapi/lib/python3.4/site-packages
WSGIProcessGroup vpapi_443
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
<Directory /home/michal/project/ovolby-api>
<Files wsgi.py>
Require all granted
AllowOverride None
</Files>
</Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/apache_cert.pem
SSLCertificateKeyFile /etc/ssl/private/apache_key.pem
</VirtualHost>