-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.sh
30 lines (24 loc) · 949 Bytes
/
configure.sh
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
echo "
<VirtualHost *:80>
ServerName <domain or ip address>
Redirect / https://<domain or ip address>
</VirtualHost>
<VirtualHost *:443>
ServerName <domain or ip address>
SSLEngine on
SSLProxyEngine On
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
ProxyRequests Off
ProxyPreserveHost On
#AllowEncodedSlashes NoDecode
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /_stcore ws://localhost:8501/_stcore
ProxyPassReverse /_stcore ws://localhost:8501/_stcore
# The order is important here
ProxyPass / http://localhost:8501/
ProxyPassReverse / http://localhost:8501/
</VirtualHost>" > /etc/apache2/sites-available/deploy_attendance_app.conf