Iman
Iman

Reputation: 483

How to redirect all request on port 80 to a docker and then pass it to my web server?

How can I put a docker between the web requests and my web server (in order to analyse and block requests)? I found morbz/docker-web-redirect docker, but it seems that it is not enough for this task.

Upvotes: 0

Views: 960

Answers (1)

Robert
Robert

Reputation: 36783

I'd recommend using nginx as reverse proxy, or better haproxy:

https://hub.docker.com/_/haproxy/

You have to configure haproxy container to listen to port 80 on the host, then direct traffic to your proxied web server.

Haproxy ACLS might be of your interest: How to route traffic (reverse Proxy) with HAProxy based on request body

Upvotes: 2

Related Questions