Using virtual_host setting in postmaster.conf file ...

Started by Marc G. Fournierover 23 years ago1 messages
#1Marc G. Fournier
scrappy@hub.org

Morning ...

Figuring that I'd try it out, I uncommented the virtual_host entry
in postmaster.conf and set it to an IP of 64.49.215.5 (the "base" machine)
...

virtual_host = '64.49.215.5'

I then restarted the daemon as:

/usr/local/pgsql721/bin/postmaster -B 10240 -N 512 -i -p 5432 -D/v1/pgsql/5432 -S (postgres)

but if I try and connect to it at a different IP, it allows me to:

%psql -p 5432 -h 64.49.215.6 template1
Welcome to psql, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

template1=# \q
%psql -p 5432 -h 64.49.215.7 template1
Welcome to psql, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit

template1=# \q

Am I misunderstandign that feature, or is there a problem with it?

Thanks ...