Still no solution to this problem? I hope I am the only one having this problem... cause it is not pretty having this problem and i don't want anybody else to go through it...
Still no solution to this problem? I hope I am the only one having this problem... cause it is not pretty having this problem and i don't want anybody else to go through it...
Try adding;
If this works add;HTML Code:Listen 127.0.0.1:631 Listen lan_ip_address:80
to secure it againHTML Code:BrowseAllow from lan_ip_subnet (i.e. 192.168.1.0/24) BrowseOrder deny,allow
I had problems with the conf file recently; I also found them difficult to pin down!
Can someone help?
Try adding:
ServerAlias *
to /etc/cups/cupsd.conf and restarting cups.
I was having a similar issue in logfile (and showing 'Bad Request' in browser), so I tried a bunch of things with curl, mainly mixing combinations of the Host header and the actual hostname (IP) used in the connection (ocean is my hostname, and resolves in DNS):
Fail: curl -H 'Host: ocean:631' http://ocean:631/printers/
Fail: curl -H 'Host: ocean' http://ocean:631/printers/
Success: curl -H 'Host: localhost:631' http://localhost:631/printers/
It turns out my first two lines of /etc/hosts were:
127.0.0.1 localhost
127.0.1.1 ocean
I think this is a NetworkManager thing (oneiric)...
So while cupsd.conf had a Listen 0.0.0.0:631 line, cups did not like connections coming in on 127.0.1.1.
I removed the second line above and was able to connect...
Maybe I last, but when I'm trying to connect from my laptop to PC's printer server, using hostname "shvedPC" from /etc/hosts I geted same error and
<code> Request from "192.168.0.100" using invalid Host: field "shvedPC"</code>
lines in cups logs. Using real IP 192.168.0.100 in server's host addres solved my problem. Try to use 127.0.0.1 istead localhost.
Bookmarks