This container is made to be used behind an Application LoadBalancer to protect some subpaths or some paths which should not be given in a front.
every path but /healthcheck will return a 400 error with the simple text message "bad request"
The healthcheck for the container can be joined by /healthcheck (which return a 204)
git clone https://github.com/talend/docker-nginx-bad-request.git
cd docker-nginx-bad-request
docker build -t talendinc/nginx-bad-request .
docker run -d -p 8080:80 --rm --name nginx-bad-request talendinc/nginx-bad-request
curl http://localhost:8080/my/protected/path -w '\n%{http_code}'
bad request
400
curl http://localhost:8080/healthcheck -w '\n%{http_code}'
204