1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 01:26:18 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/webserver/WebServer Parameter_ path-prefix.tid
2020-10-27 12:32:06 +00:00

20 lines
798 B
Plaintext

caption: path-prefix
created: 20180630180514893
modified: 20201027122943281
tags: [[WebServer Parameters]]
title: WebServer Parameter: path-prefix
type: text/vnd.tiddlywiki
The [[web server configuration parameter|WebServer Parameters]] ''path-prefix'' can be used to set an optional prefix for all paths served.
This example causes the server to serve from http://127.0.0.1/MyApp instead of the default http://127.0.0.1/.
```
tiddlywiki mywikifolder --listen "path-prefix=/MyApp"
```
Notes:
* Further steps are required to configure the client-side components to use the prefix. See [[Using a custom path prefix with the client-server edition]]
* If no path prefix is required then the `path-prefix` parameter should be omitted or set to the empty string, and not to `\` as might be expected