<p>Trying to troubleshoot Nginx deployed as a container. Is it possible to dump request info back to requester via webpage ?</p>

<p>For example, instead of standard "Welcome to Nginx!" page, could I get list of request headers and source ip of the client ? </p>

<p>Thank you !</p>

<p><a href="https://i.stack.imgur.com/Q8vQ2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q8vQ2.png" alt="Welcome to NGINX"></a></p>

Andy
<p>Found image build specially for that purpose : <strong>gcr.io/google_containers/echoserver:1.4</strong></p>

<pre><code>kubectl run echoserver --image=gcr.io/google_containers/echoserver:1.4 --port=8080

vagrant@master-1:~$ curl 172.16.97.199:8080
CLIENT VALUES:
client_address=172.16.39.0
command=GET
real path=/
query=nil
request_version=1.1
request_uri=http://172.16.97.199:8080/

SERVER VALUES:
server_version=nginx: 1.10.0 - lua: 10001

HEADERS RECEIVED:
accept=*/*
host=172.16.97.199:8080
user-agent=curl/7.58.0
BODY:
-no body in request-
</code></pre>
