Skip to content

Conversation

@arvind-agarwal
Copy link

I have added support for basic reverse proxy. The way it works is if file is not found by ecstatic, it will fall back to forwarding the request to a proxy server, configured by -f parameter, for .e.g http-server -f http://localhost:5000/ etc. This is very basic support to keep in line with spirit of http-server to keep it simple and cli driven.

We are using this as small replacement of nginx in dev environment. So that static files can be served as well as it works as reverse proxy for rest of the requests.

@indexzero
Copy link
Member

Thank you for your contribution. This ended up being a duplicate of #134. In the future conforming to the project code style is a big 👍

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

Successfully merging this pull request may close these issues.

2 participants