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

Path segments after service name not proxying correctly #350

Open
dbraley opened this issue Jan 28, 2020 · 0 comments
Open

Path segments after service name not proxying correctly #350

dbraley opened this issue Jan 28, 2020 · 0 comments

Comments

@dbraley
Copy link

dbraley commented Jan 28, 2020

I'm guessing this is just a configuration error, but for the life of me I can't seem to figure out how to get this to work. If I have a service web-workshop that has a health endpoint, I can't seem to access it via localhost:2000/web-workshop/health, even though going to the /health endpoint on the localhost and port url works fine, and going to the web-workshop url works fine.

▶ curl -s -w "\nstatus: %{http_code}\n" http://localhost:2000/web-workshop
Found. Redirecting to http://localhost:49710
status: 302
▶ curl -s -w "\nstatus: %{http_code}\n" http://localhost:49710/health

status: 200
▶ curl -s -w "\nstatus: %{http_code}\n" http://localhost:2000/web-workshop/health
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /web-workshop/health</pre>
</body>
</html>

status: 404

My configuration is fairly standard:

▶ cat ~/.hotel/conf.json 
{
  "port": 2000,
  "host": "127.0.0.1",
  "timeout": 5000,
  "tld": "localhost", 
  "proxy": false
}
▶ cat ~/.hotel/servers/web-workshop.json 
{
  "cwd": "/path/to/code/web-workshop",
  "cmd": "PORT=$PORT go run main.go",
  "env": {
    "PATH": "XXX"
  }

Any thoughts on what I'm doing wrong, or is this really not supported?

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