Re: CGI Help

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jeff" <jklcom(at)mindspring(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: CGI Help
Date: 2001-02-25 21:38:49
Message-ID: 21064.983137129@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Jeff" <jklcom(at)mindspring(dot)com> writes:
> I have a cgi script that runs fine under command-line
> But when execute from a client browser, I get CGI Error
> The specified CGI application misbehaved by not returning a complete set of
> HTTP headers. The headers it did return are:

> It seems like it is not able to connect to the host.

Have you verified that theory by looking in the postmaster log?
What shows up in the log, anyway?

> here's what I have in my pg_hba.conf
> local all trust
> host all 127.0.0.1 255.255.255.255 trust
> test all 192.168.38.0 255.255.255.0 trust

> executing from client browser
> http://www.test.com/cgi-bin/test.cgi

That line beginning "test" is going to be rejected by the postmaster...
should say "host".

BTW, if your CGI is executing under a virtual IP address, the client
address seen by the postmaster may be that virtual IP not the real IP.

regards, tom lane

In response to

  • CGI Help at 2001-02-25 19:34:37 from Jeff

Browse pgsql-general by date

  From Date Subject
Next Message Chris 2001-02-25 23:18:58 Re: PHP4.0.4pl1 and PostgreSQL 7.1beta4
Previous Message GH 2001-02-25 20:56:43 Re: Lan Connection