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

i am not able add one of my own upstream #3

Open
pannet1 opened this issue Feb 6, 2021 · 0 comments
Open

i am not able add one of my own upstream #3

pannet1 opened this issue Feb 6, 2021 · 0 comments

Comments

@pannet1
Copy link

pannet1 commented Feb 6, 2021

Hi Mark,

Many thanks for your wonderful go proxy. I am very very new noobie. Please forgive my silly questions.

i am not able add one of my own upstream

Upstreams
// HTTPBin is used for testing
var Alice = &Upstream{
Name: "alice",
Host: "example.com",
}

configurations
Config{
Path: "/contact-us",
Upstream: upstreams.Alice,
}

route
/contact-us

result
$ http http://127.0.0.1:9001/contact-us`
HTTP/1.1 404 Not Found
Content-Length: 19
Content-Type: text/plain; charset=utf-8
Date: Sat, 06 Feb 2021 17:34:20 GMT
X-Content-Type-Options: nosniff
404 page not found

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