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

Wishlist: how to get something running #9

Open
davidw opened this issue Jun 9, 2017 · 1 comment
Open

Wishlist: how to get something running #9

davidw opened this issue Jun 9, 2017 · 1 comment

Comments

@davidw
Copy link
Contributor

davidw commented Jun 9, 2017

The docs are a bit sparse in terms of just getting something running that I can try out.

I want to, say, proxy http://localhost:3210 to http://example.com just to check things out and see how everything works. I just get 'bad request' responses from Cowboy when hitting localhost.

Thanks

@davidw
Copy link
Contributor Author

davidw commented Jun 13, 2017

Here's what I did:

config :reverse_proxy, upstreams: %{
  "foobar.local" => ["www.example.com"],
  "api." => {ReverseProxyTest.SuccessPlug, []} }

With foobar.local something I added to /etc/hosts

I also had to fiddle with the code because of this: #2

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

1 participant