Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only
Date: Thu, 25 Apr 2013 07:11:07
Message-Id: e62ae1dc07d5c6d5e71539fb4c54f66f.squirrel@www.antarean.org
In Reply to: Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only by Joseph
1 On Thu, April 25, 2013 07:48, Joseph wrote:
2
3 <SNIP>
4
5 > I just tried as you suggested, the only active line in: pg_hba.conf
6 > local all all trust
7 >
8 > anything else is commented out. I restarted the server but I still can
9 > connect to postgresql from another computer via Firefox.
10
11 Joseph,
12
13 Let me put it in really simple terms:
14 1) Firefox is NOT a database client, it can NOT connect to a database
15 2) Firefox IS a webbrowser, it ONLY connects to a webserver
16
17 This means, Postgresql will NOT see ANY connection made by Firefox.
18
19 The website you have running ON TOP OFF apache makes the connection to
20 Postgresql.
21
22 Eg. it goes like the following:
23
24 User <-> Firefox <-> Apache/website <-> Postgresql
25
26 Any of the above can ONLY see their immediate neighbour.
27
28 --
29 Joost

Replies

Subject Author
Re: [gentoo-user] PosgreSQL - pg_hba.conf localhost access only Joseph <syscon780@×××××.com>