{admin_uri} substitution

Michael Sweet mike at easysw.com
Wed Sep 7 10:00:03 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 127.0.0.1
> +------------------
> 
> I experience the following problem when I open [http://localhost:631/printers] to make 'administrative task':
> 
> I cannot do anything there, because {admin_uri} substitution on printer's 'action buttons' (as actioned on /usr/share/cups/printers.htm by cupsd) puts there my fully quolified host.domain.name, which obviously gets me into the [Deny All] branch of the <Location /admin> ACL.
> 
> I think this is a bug, and the {admin_uri} should only contain PATH part of the URI (in this case, the "admin" string), leaving the [<proto>://<hostname>:<port>/] part for web-brawser to provide from 'current base'.
> 
> If that is not realy a bug, but a 'design feature', what are exactly the reasons to 'hardwire' the base location of the cupsd installation withih the served pages?

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...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list