Skip to content

Commit 646c560

Browse files
committed
add a sample configuration file
1 parent 3df101b commit 646c560

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

examples/web-server/apache/coder.conf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)