-
Notifications
You must be signed in to change notification settings - Fork 0
/
cotrack_conf.txt
83 lines (65 loc) · 2.35 KB
/
cotrack_conf.txt
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName www.cotrack.website
# SSL configuration
SSLEngine on
# If you hold wildcard certificates for your domain the next two lines are not necessary.
#SSLCertificateChainFile "/etc/ssl/ca_bundle.crt"
WSGIScriptAlias / /home/cotrack/CoTrack-Web-mvps/TrustedUX/wsgi.py
Alias /static /home/cotrack/CoTrack-Web-mvps/static
Alias /media /home/cotrack/CoTrack-Web-mvps/media
<Directory "/home/cotrack/CoTrack-Web-mvps/TrustedUX">
<Files wsgi.py>
Require all granted
</Files>
</Directory>
<Directory "/home/cotrack/CoTrack-Web-mvps">
<Files db.sqlite3>
Require all granted
</Files>
</Directory>
<Directory "/home/cotrack/CoTrack-Web-mvps/static">
Require all granted
</Directory>
<Directory "/home/cotrack/CoTrack-Web-mvps/media">
Require all granted
</Directory>
SSLCertificateFile /etc/letsencrypt/live/www.cotrack.website/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.cotrack.website/privkey.pem
#Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
<VirtualHost *:443>
ServerName www.etherpad.website
# SSL configuration
SSLEngine on
# If you hold wildcard certificates for your domain the next two lines are not necessary.
#SSLCertificateChainFile "/etc/ssl/etherpad_ca_bundle.crt"
ProxyVia On
ProxyRequests Off
ProxyPreserveHost on
<Location />
ProxyPass http://localhost:9001/
ProxyPassReverse http://localhost:9001/
</Location>
<Location /socket.io>
RewriteEngine On
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:9001/socket.io/$1 [P,L]
ProxyPass http://localhost:9001/socket.io
ProxyPassReverse http://localhost:9001/socket.io
</Location>
<Location />
Order allow,deny
allow from all
</Location>
<Proxy *>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Proxy>
SSLCertificateFile /etc/letsencrypt/live/www.cotrack.website/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.cotrack.website/privkey.pem
#Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>