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

always 502 when using proxying in docker #63

Closed
ZeekoZhu opened this issue Jul 13, 2017 · 3 comments
Closed

always 502 when using proxying in docker #63

ZeekoZhu opened this issue Jul 13, 2017 · 3 comments

Comments

@ZeekoZhu
Copy link

here is my Caddyfile

tools.xxxx.com {
	proxy / localhost:5004 {
		transparent
	}
#	log / /home/caddy/logs/tools_access.log
}

But when I run caddy on the host directly, everything works well

@abiosoft
Copy link
Owner

what is running on localhost:5004 ?

Are you using Docker Machine or Docker for Mac ?

@ZeekoZhu
Copy link
Author

ZeekoZhu commented Jul 13, 2017

I have a aspnetcore site running on localhost:5004

I'm using docker on Ubuntu 16.04 kernel 4.4.0

@abiosoft
Copy link
Owner

I am not sure if localhost is how you reach the host from a docker container. That is most likely where to problem is. You can try reaching that port from inside the container.

I believe that Caddy has no role to play in this, but rather communication between container and host.

Feel free to reopen if we ascertain it is an issue with Caddy.

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

2 participants