[cups.general] CUPS web interface generating absolute URLs for printers with "loopback" addresses

Helge Blischke h.blischke at acm.org
Sat Jul 24 01:45:48 PDT 2010


Eric Michaelis wrote:

> I believe I've figured this out. On a default AIX install, the hosts file
> has the entry as I listed below. From what I can tell of reading the CUPS
> code (keeping in mind that I haven't written anything in C in 15 years),
> CUPS is getting "loopback" as the name for that IP, comparing it to
> "localhost" (which fails), and rewriting all the URLs as
> http://loopback....
> 
> Reversing the order of the entries in /etc/hosts (i.e., changing it to:
> 127.0.0.1    localhost   loopback) seems to fix this behavior.
> 
> Thanks!
> 
> Eric
> 
> On Fri, Jul 23, 2010 at 10:44 AM, Eric Michaelis
> <combinare at gmail.com>wrote:
> 
>> I checked that before I posted, actually; the only reference to loopback
>> in /etc/hosts on the server is:
>>
>> 127.0.0.1       loopback localhost  # loopback (lo0) name/address
>>
>> I don't believe that's the source of the problem.
>>
>> Thanks!
>>
>> Eric
>>
>>
>> On Thu, Jul 22, 2010 at 9:19 PM, Michael Sweet
>> 
<msweet at apple.com<https://mail.google.com/mail?view=cm&tf=0&to=msweet@apple.com>
>> > wrote:
>>
>>> Your /etc/hosts file incorrectly has loopback assigned to your network
>>> address.  It should only be associated with 127.0.0.1 and ::1.
>>>
>>>
>>>
>>

Well, obviously CUPS replaces host name alias names with the official host 
name; that is the first name in the /etc/hosts line.

Helge





More information about the cups mailing list