We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3df101b commit 646c560Copy full SHA for 646c560
examples/web-server/apache/coder.conf
@@ -0,0 +1,19 @@
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>
0 commit comments