-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpicquest.conf
45 lines (34 loc) · 1.46 KB
/
picquest.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
<VirtualHost *:80>
ServerAdmin support@picquest.online
ServerName picquest.online
DocumentRoot /home/blackstackhub/picquest
<Directory /home/blackstackhub/picquest>
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/picquest_error.log
CustomLog ${APACHE_LOG_DIR}/picquest_access.log combined
RewriteEngine On
RewriteCond %{SERVER_NAME} =picquest.online
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName picquest.online
DocumentRoot /home/blackstackhub/picquest
<Directory /home/blackstackhub/picquest>
Require all granted
</Directory>
WSGIDaemonProcess picquest python-path=/home/blackstackhub/picquest:/home/blackstackhub/picquest/venv/lib/python3.9/site-packages
WSGIProcessGroup picquest
WSGIScriptAlias / /home/blackstackhub/picquest/tasks/wsgi.py
# Static files (CSS, JavaScript, images)
Alias /static/ /home/blackstackhub/picquest/statics/
<Directory /home/blackstackhub/picquest/statics>
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/picquest_error.log
CustomLog ${APACHE_LOG_DIR}/picquest_access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/picquest.online/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/picquest.online/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/picquest.online/chain.pem
</VirtualHost>