[cups] CUPS web interface HTTP ./. HTTPS

Alex Korobkin korobkin+cups at gmail.com
Wed Feb 28 09:04:20 PST 2018


Try adding to your cupsd.conf:

ServerName hostname.domain.tld
ServerAlias *


On Wed, Feb 28, 2018 at 7:30 AM, Matthias Apitz <guru at unixarea.de> wrote:

>
> 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
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://lists.cups.org/mailman/listinfo/cups
>



-- 
-Alex


More information about the cups mailing list