Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 95164d0

Browse filesBrowse files
author
hackercat
authored
feat: add caddy example for serving from sub-path
1 parent d31439e commit 95164d0
Copy full SHA for 95164d0

1 file changed

+9Lines changed: 9 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/guide.md‎

Copy file name to clipboardExpand all lines: docs/guide.md
+9Lines changed: 9 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,15 @@ mydomain.com
195195
reverse_proxy 127.0.0.1:8080
196196
```
197197

198+
If you want to serve `code-server` from a sub-path, below is sample configuration for Caddy:
199+
200+
```
201+
mydomain.com/code/* {
202+
uri strip_prefix /code
203+
reverse_proxy 127.0.0.1:8080
204+
}
205+
```
206+
198207
Remember to replace `mydomain.com` with your domain name!
199208

200209
5. Reload caddy with:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.