-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
An option to set the base-href #595
Comments
I don't think I'm understanding what you'd like to do. Are you wanting to serve files in a way where you would go to |
Hi @thornjad , There was a problem with my question. |
What do you mean by virtual path? Are you wanting to be able to request something like |
What I want is to configure the http-server to respond to http://localhost:5000/foo the same as if the request was http://localhost:5000.
|
Would you be able to achieve the same by simply putting all your files into a directory called "foo"?
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Thursday, January 2, 2020 5:32 AM, zshlomyz ***@***.***> wrote:
What I want is to configure the http-server to respond to http://localhost:5000/foo the same as if the request was http://localhost:5000.
For example:
- GET http://localhost:5000/foo - the response will be the index.html file from the static files folder.
- GET http://localhost:5000/foo/bar.css - the respond will be the bar.css file from the static files folder.
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#595?email_source=notifications&email_token=AEE3WD7BH6YF4LDKO3Q6IF3Q3XGDHA5CNFSM4KBMAY5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH6EZMA#issuecomment-570182832), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AEE3WDZ2SDJUX5CWRXFYABLQ3XGDHANCNFSM4KBMAY5A).
|
No. There is any rewrite option that can help me? |
this seems to be a duplicate of #294 |
This issue has been inactive for 180 days |
I'm considering this a duplicate of #139, please reopen if I've misunderstood the request |
I think this is a different thing than #139, as I just came across it -- for example jekyll lets you set a For example if one had their blog at So currently, one could go into the Jekyll's server rewrites the url so that going to localhost:port/subpage/blog serves all the content from the webpack does something similar, so this would be very helpful for independent testing of bundled sites like that <3 |
I'm guessing what they need is the ability to add a virtual folder that doesn't exist on disk. So lets say I start In both cases the file is in the same path on disk but the path of the http request changes accordingly to the parameter, this is useful for angular applications where the
|
sdyffdsaf |
Hi,
I want to configure the http-server to listen to a URL that contain a virtual, like:
http://localhost:<port>/<virtual-path>.
I can't find a way to doing that using the available options.
Is anyone know a way to do that?
Thanks
The text was updated successfully, but these errors were encountered: