-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflask_apache.conf
36 lines (33 loc) · 1.12 KB
/
flask_apache.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
<VirtualHost *:443>
ServerName 3.139.209.115
ServerAdmin surajbhari159@gmail/com
WSGIScriptAlias / /var/www/streamsnip/app.wsgi
Protocols h2 http/1.1
<Directory /var/www/streamsnip/>
Require all granted
</Directory>
<Location "/server-status">
SetHandler server-status
</Location>
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/streamsnip.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/streamsnip.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/streamsnip.com/chain.pem
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel error
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName 3.139.209.115
ServerAdmin surajbhari159@gmail/com
WSGIScriptAlias / /var/www/streamsnip/app.wsgi
<Directory /var/www/streamsnip/>
Require all granted
</Directory>
<Location "/server-status">
SetHandler server-status
</Location>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel error
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>