-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't figure out to configure to serve a virtual path #111
Comments
Anybody familiar with this? I cannot figure it out.. |
@chasen-bettinger You can use the fragments feature like this: {
"rewrites": [
{
"source": "path/you/want/:asset",
"destination": ":asset"
}
]
} |
I am struggling with this same issue, and I've not found the correct set of google terms to answer this :-) I want to serve a folder "my_site" but I want to prefix it so that the url would be http://some_prefix/some_folder/ I tried this
and then ran It almost works If i navigate to What do i need to do to serve a folder, and have it appear to be under some other folder on a virtual path? |
I tried this based on a thread above and it does not seem to work either:
|
Hi,
I would like the server listen to a virtual path / base-path like this - localhost:/.
I used the rewrite property but I didnt found a way that serve the index.html file when accesing without postfix while serving the other files.
My configuration:
{ "rewrites": [ { "source": "/virtual-path", "destination": "/index.html" }, { "source": "/virtual-path/:rest", "destination": "/:rest" } ] }
Please help,
Thanks
The text was updated successfully, but these errors were encountered: