cgi-bin: localhost

pieterjandeboeck at yahoo.co.uk pieterjandeboeck at yahoo.co.uk
Mon Aug 9 09:51:46 PDT 2004


Ok, that reply made no sense, sorry.

I'm not sure if you can use it to listen to another server, seems unlikely.

PJ

pieterjandeboeck wrote:
> Sorry to but in but,
>
> There's a cupsd printserver running on your local machine. Are you using your cupsd to listen to print activity on another another computer?
>
> My way around this would be to substitute dynamically, aka,
>
> if ("127.0.0.1")
> then
>     replace with "localhost"
>
>
> (in pseudocode)
>
> Pieter
>
>
> somogyi wrote:
> > Hello,
> >
> > We have the following problem:
> >
> > When CUPS is configured to listen only on a fixed address (with the "Listen x.x.x.x:631" parameter), then the CUPS web interface doesn't work.
> > This occours because the CUPS web interface connects to ipp://localhost, but the CUPS service listens on x.x.x.x:631 (not localhost).
> >
> > Example code part of CUPS ("cgi-bin/printers.c"):
> >   http = httpConnectEncrypt("localhost", ippPort(), cupsEncryption());
> >
> > (almost localhost everywhere in the cgi-bin source)
> >
> > Is it a bug, or a feature?
> >
>





More information about the cups-devel mailing list