{admin_uri} substitution

Anonymous anonymous at easysw.com
Thu Sep 8 02:23:07 PDT 2005

> Anonymous wrote:
> > Hi,
> >
> > I have CUPS 1.1.23 (as of Debian testing).
> >
> > My ACL for <Location /admin> is:
> > | Order Deny,Allow
> > | Deny From All
> > | Allow From
> > +------------------
> >
> > I experience the following problem when I open [http://localhost:631/printers] to make 'administrative task':
> >
> Does the hostname match the ServerName on your system?
> The ippRewriteURL() function in the CGI library does its best to
> determine if a given printer is local or not.  If the hostname doesn't
> match the ServerName in cupsd.conf, then it assumes the printer is
> remote...

I'd say, yes:
ServerName model.home.waw.pl
anonymous at model:~$ hostname
anonymous at model:~$ dnsdomainname
anonyous at model:~$ host model
model.home.waw.pl has address
Although you want find this in the globap *.pl DNS - I mock the domain with my internal DNS (on 192.168...). Still, as you can see, locally it's all consistant.

I don't understand why cupsd assumes the printer is remote???? But, should I understant from your response, that cupsd *can* recognise a printer as local and *NOT* provide {admin_uri} substitution with the <proto>://<host>:<port> part?

If so, what would you need to know from my configuration to help me identify where exactly (or why) cupsd (or ippRewriteURL()) get it wrong?

More information about the cups mailing list