You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide.md
+10
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
-[Proxying to a Vue app](#proxying-to-a-vue-app)
21
21
-[Proxying to an Angular app](#proxying-to-an-angular-app)
22
22
-[Proxying to a Svelte app](#proxying-to-a-svelte-app)
23
+
-[Prefixing `/absproxy/<port>` with a path](#prefixing-absproxyport-with-a-path)
23
24
24
25
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
25
26
<!-- prettier-ignore-end -->
@@ -432,3 +433,12 @@ const config = {
432
433
3. Access app at `<code-server-root>/absproxy/5173/` e.g. `http://localhost:8080/absproxy/5173/
433
434
434
435
For additional context, see [this Github Issue](https://github.com/sveltejs/kit/issues/2958)
436
+
437
+
### Prefixing `/absproxy/<port>` with a path
438
+
439
+
This is a case where you need to serve an application via `absproxy` as explained above while serving `codeserver` itself from a path other than the root in your domain.
440
+
441
+
For example: `http://my-code-server.com/user/123/workspace/my-app`. To achieve this result:
442
+
443
+
1. Start code server with the switch `--abs-proxy-base-path=/user/123/workspace`
444
+
2. Follow one of the instructions above for your framework.
0 commit comments