puppetDB in EC2 , need help to configure apache reverse proxy

20 views
Skip to first unread message

Mark_2018

unread,
May 1, 2017, 12:50:39 PM5/1/17
to Puppet Users

Hello Team , I am new to puppetdb

I run puppet db in a EC2 instance and it is running and listening in port 8080


lsof -i :8080
COMMAND PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    851 puppetdb   19u  IPv6  18964      0t0  TCP localhost:webcache (LISTEN)


I installed apache on the same box and configured proxy to route all the inbound traffic to localhost:8080


 more reverse-proxy.conf
<IfModule mod_proxy.c>
          ProxyRequests Off
          <Proxy *>
                    Require all granted
          </Proxy>
           ProxyPass  / http://localhost:8081
           ProxyPassReverse  / http://localhost:8081
</IfModule>

when i tried to access from internet I got the below error

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /pdb/dashboard/index.html.

Reason: DNS lookup failure for: localhost:8081pdb




From Puppetdb-accesslog


localhost - - [30/Apr/2017:19:20:41 +0000] "GET /pdb/meta/v1/version HTTP/1.1" 200 25 "-" "Puppet/4.10.0 Ruby/2.1.9-p490 (x86_64-linux)" 50
127.0.0.1 - - [30/Apr/2017:20:37:36 +0000] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0" 3
127.0.0.1 - - [30/Apr/2017:20:37:41 +0000] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0" 1
127.0.0.1 - - [30/Apr/2017:20:49:50 +0000] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0" 17
127.0.0.1 - - [30/Apr/2017:21:01:32 +0000] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0" 1
127.0.0.1 - - [30/Apr/2017:21:30:25 +0000] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0" 1
127.0.0.1 - - [30/Apr/2017:21:35:40 +0000] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0" 19


any help is appriciated

Reply all
Reply to author
Forward
0 new messages