pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Clark <matt@ymogen.net>
To: Martin Foster <martin@ethereal-realms.org>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: Re: Restricting Postgres
Date: Thu, 04 Nov 2004 21:00:27 +0000
Message-ID: <418A986B.5040806@ymogen.net> (raw)
In-Reply-To: <418A915B.5060600@ethereal-realms.org>
References: <003301c4c29a$f052d910$8300a8c0@solent>
	<418A915B.5060600@ethereal-realms.org>


> These are CGI scripts at the lowest level, nothing more and nothing 
> less.  While I could probably embed a small webserver directly into 
> the perl scripts and run that as a daemon, it would take away the 
> portability that the scripts currently offer.

If they're CGI *scripts* then they just use the CGI environment, not 
Apache, so a daemon that accepts the inbound connections, then compiles 
the scripts a-la Apache::Registry, but puts each in a separate thread 
would be, er, relatively easy for someone better at multithreaded stuff 
than me.

>
> This should be my last question on the matter, does squid report the 
> proper IP address of the client themselves?    That's a critical 
> requirement for the scripts.
>
In the X-Forwarded-For header.  Not that you can be sure you're seeing 
the true client IP anyway if they've gone through an ISP proxy beforehand.





view thread (34+ messages)  latest in thread

Message-ID: <418A986B.5040806@ymogen.net>
Permalink:  ../418A986B.5040806@ymogen.net/
Also on:    postgresql.org/message-id/418A986B.5040806@ymogen.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: matt@ymogen.net, martin@ethereal-realms.org
  Subject: Re: Restricting Postgres
  In-Reply-To: <418A986B.5040806@ymogen.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox