[cups] CUPS web interface HTTP ./. HTTPS

Matthias Apitz guru at unixarea.de
Wed Feb 28 04:30:31 PST 2018


Hello,

When I access the CUPS' web interface via:

  http://hostname.domain.tld:631/

it works fine upto the point 'Add Printer'. There it needs now HTTPS and
forces a redirect with a page:

  426 Upgrade Required
  You must access this page using the URL https://hostname:631/admin/.

The problem is, that in the redirect URL only the 'hostname' is included
and not the full DNS name, as above used in the starting URL. And the
browser can't find the server and its pages.

The code which produces this problem in 1.4.3 is in scheduler/client.c:

...
    else if (code == HTTP_UPGRADE_REQUIRED)
    {
      text = urltext;

      snprintf(urltext, sizeof(urltext),
               _cupsLangString(con->language,
                               _("You must access this page using the
URL "
                                 "<A HREF=\"https://%s:%d%s\">"
                                 "https://%s:%d%s</A>.")),
               con->servername, con->serverport, con->uri,
               con->servername, con->serverport, con->uri);
...

How this is supposed to be configured correctly?

	matthias
-- 
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/  📱 +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub


More information about the cups mailing list