-
Notifications
You must be signed in to change notification settings - Fork 0
/
nwscandb_prod.conf
40 lines (32 loc) · 1.24 KB
/
nwscandb_prod.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
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/tmp/stapling_cache(128000)
<VirtualHost _default_:8085>
Servername www.example.com
ServerAdmin [email protected]
<Directory "/var/www/site_nwscandb/nwsdb/">
WSGIScriptReloading On
<Files wsgi_prod.py>
Require all granted
</Files>
<Files wsgi_dev.py>
Require all granted
</Files>
</Directory>
Alias /static /var/www/site_nwscandb/static
<Directory "/var/www/site_nwscandb/static">
Require all granted
</Directory>
WSGIDaemonProcess nwscandb python-path=/var/www/site_nwscandb/nwsdb:/var/www/site_nwscandb/venv/lib/python3.4/site-packages
WSGIProcessGroup nwscandb
WSGIScriptAlias / /var/www/site_nwscandb/nwsdb/nwscandb/wsgi_prod.py
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/nwscandb_prod.access.log combined
ErrorLog ${APACHE_LOG_DIR}/nwscandb_prod.error.log
# Enable/Disable SSL for this virtual host.
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/www.example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.example.com/privkey.pem
SSLCACertificateFile /etc/ssl/certs/ca-certificates.crt
SSLUseStapling on
</VirtualHost>
</IfModule>