-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmail.conf
46 lines (36 loc) · 1.65 KB
/
mail.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
<VirtualHost *:80>
ServerAdmin blackstackhub@gmail.com
ServerName mail.blackstackhub.com
DocumentRoot /home/blackstackhub/blackstackhub
<Directory /home/blackstackhub/blackstackhub>
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/mail_error.log
CustomLog ${APACHE_LOG_DIR}/mail_access.log combined
RewriteEngine On
RewriteCond %{SERVER_NAME} =mail.blackstackhub.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName mail.blackstackhub.com
DocumentRoot /home/blackstackhub/blackstackhub
<Directory /home/blackstackhub/blackstackhub>
Require all granted
</Directory>
WSGIDaemonProcess blackstackhub python-path=/home/blackstackhub/blackstackhub:/home/blackstackhub/blackstackhub/venv/lib/python3.9/site-packages
WSGIProcessGroup blackstackhub
WSGIScriptAlias / /home/blackstackhub/blackstackhub/blackstackhub/wsgi.py
# Static files (CSS, JavaScript, images)
Alias /static/ /home/blackstackhub/blackstackhub/static_files/
<Directory /home/blackstackhub/blackstackhub/static_files>
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/mail_error.log
CustomLog ${APACHE_LOG_DIR}/mail_access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/blackstackhub.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/blackstackhub.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/blackstackhub.com/chain.pem
</VirtualHost>
</IfModule>