cgi-bin: localhost

oehmes at de.ibm.com oehmes at de.ibm.com
Thu Aug 12 09:08:24 PDT 2004


Michael Sweet wrote:
> somogyi at de.ibm.com 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?
>
> It is as designed; you MUST listen on the local loopback interface
> for the authentication information that is passed to the CGIs to
> work.  We will not be changing this.
>
> --
> ______________________________________________________________________
> Michael Sweet, Easy Software Products           mike at easysw dot com
> Printing Software for UNIX                       http://www.easysw.com

hy Michael ,

the Problem we have is , we run multiple Cups Servers on one single box and have somehow to manage them .would it be acceptable , if we would provide a patch to fix this ? how sould we fix it , would it be enough to build in a second Option in cupsd.conf to listen on one port for print jobs and on another port (which can default point to localhost ) for management ? or any other ideas ..  ?

Thanks Sven





More information about the cups mailing list