RHEL CUPS print server rejecting requests with "Invalid Host" message
Issue
-
After the Printer server upgrade to RHEL6, no print jobs work. The CUPS error log (
/var/log/cups/error_log) shows errors like the following:E [11/Nov/2014:16:57:31 -0600] Request from "10.1.2.3" using invalid Host: field "corp.example.com".We have two printer servers that use an F5 load balancer.
-
We use the CUPS
client.conffile which let the local client print to an external CUPS server. When i put the hostname of the remote CUPS server inclient.conf(i.e. "ServerName cups.example.com") and try to print it says "lpr: bad-request". If I put the IP_address of the remote CUPS server inclient.conf(i.e. "ServerName 10.1.2.3"), then everything works fine.
Environment
- Red Hat Enterprise Linux (RHEL) 6
- Common Unix Printing System (CUPS) 1.4.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
