File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
examples/web-server/apache Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ <VirtualHost *:443>
2
+ ServerName YOUR_SUBDOMAIN # e.g. dev.coder.com
3
+ ServerAlias *.YOUR_SUBDOMAIN # e.g. *.dev.coder.com
4
+ ErrorLog ${APACHE_LOG_DIR}/error.log
5
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
6
+
7
+ ProxyPass / http://127.0.0.1:3000/
8
+ ProxyPassReverse / http://127.0.0.1:3000/
9
+ ProxyRequests Off
10
+ ProxyPreserveHost On
11
+
12
+ RewriteEngine On
13
+ RewriteCond %{HTTP:Connection} Upgrade [NC]
14
+ RewriteCond %{HTTP:Upgrade} websocket [NC]
15
+ RewriteRule /(.*) ws://127.0.0.1:3000/$1 [P,L]
16
+
17
+ SSLCertificateFile /etc/letsencrypt/live/dev.dietstyler.com/fullchain.pem
18
+ SSLCertificateKeyFile /etc/letsencrypt/live/dev.dietstyler.com/privkey.pem
19
+ </VirtualHost>
You can’t perform that action at this time.
0 commit comments