-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvirtualhost.conf.example
More file actions
30 lines (25 loc) · 1.24 KB
/
virtualhost.conf.example
File metadata and controls
30 lines (25 loc) · 1.24 KB
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
<VirtualHost *:443>
ServerName dev-node.zing.land
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/cloudflare/cloudflare.subdomain.zing.land.pem
SSLCertificateKeyFile /etc/apache2/ssl/website_ssl.key
SSLCertificateChainFile /etc/apache2/ssl/cloudflare/cloudflare.rsa.pem
ServerAdmin jacob@mathisonprojects.com
DocumentRoot /var/www/html/git/packages/zing-node-default
ErrorLog /var/www/html/git/packages/logs/dev-node.zing.land-error.log
CustomLog /var/www/html/git/packages/logs/dev-node.zing.land-access.log combined
ProxyRequests Off
ProxyPreserveHost On
SSLProxyEngine on
ProxyPass / https://localhost:4000/
ProxyPassReverse / https://localhost:4000/
# This is needed only if you want to use web sockets
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:4000/$1 [P,L]
</VirtualHost>
<VirtualHost *:80>
ServerName dev-node.zing.land
Redirect permanent / https://dev-node.zing.land/
</VirtualHost>