ubuntu 9.10 cups server cupsd.conf

Posted by aaron on Super User See other posts from Super User or by aaron
Published on 2010-01-03T22:29:35Z Indexed on 2010/03/08 20:08 UTC
Read the original article Hit count: 382

Filed under:

i have a cups server running on ubuntu 9.10 on my home network. right now i can access it at, but when i try to access it at myservername.local:631 i get a 400 Bad Request. here's the relevant section from my current cupsd.conf:


# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# any of the below 'Listen' directives all yield the same result
#Listen *:631
#Listen myservername.local:631

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseLocalProtocols CUPS dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order deny,allow
  Deny from All
  Allow from
  Allow from 192.168.1.*

# Restrict access to the admin pages...
<Location /admin>
  Order deny,allow
  Deny from All
  #Allow from
  #Allow from 192.168.1.*

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order deny,allow
  Deny from All
  #Allow from
  #Allow from 192.168.1.*

i get the following in /var/log/cups/error_log:

E [03/Jan/2010:18:33:41 -0600] Request from "" using invalid Host: field "myservername.local:631"

what do i need to do to be able to access the cups server at both and myservername.local:631?

© Super User or respective owner

Related posts about ubuntu-9.10

Related posts about cups