Skip to content
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

Multiple paths, maybe some light URL re-writing? #348

Closed
brandonros opened this issue Mar 3, 2017 · 7 comments
Closed

Multiple paths, maybe some light URL re-writing? #348

brandonros opened this issue Mar 3, 2017 · 7 comments

Comments

@brandonros
Copy link

No description provided.

@BigBlueHat
Copy link
Member

@brandonros anything specific you'd like here?

@SiXoS
Copy link

SiXoS commented May 13, 2017

I have created a pull request for this. Hopefully it will be merged soon. You can find it here: https://github.com/SiXoS/http-server
Pull request with a manual: #365

@meszaros-lajos-gyorgy
Copy link

Duplicate: #139

@sasmaster
Copy link

Very very important feature ( expose sub-dirs to the wild). What's the status of it?

@BigBlueHat
Copy link
Member

This is a larger project-direction discussion, really. The upstream node-ecstatic package doesn't support multiple directories (see jfhbrook/node-ecstatic#192 (comment) for more).

Depending on your use case--which I'd love to hear more about--you may be best served (hehe) by using nginx (or similar). Something deliberately written for long running, large scale, multiple directory HTTP serving.

@xr0master
Copy link

It has issue with html5 routing.
For example: if I have the url "example.com/account" in my single application, then after refresh it will response 404. So I need a simple rule, if it is 404 (or file not found) then response the index.html

@thornjad
Copy link
Member

Serving multiple directories is already covered in #139. Beyond that, I'm closing this as out of scope since http-server is a static server and doesn't officially support SPA's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants