Comments (8)
CUPS.org User: mike
I'm guessing that ServerName is set to something other than the hostname or the IP address of the system? If so, the default authentication WILL NOT WORK for any printing, since the URI that is advertised is not accessible and this is a configuration problem, not a CUPS bug.
from cups.
CUPS.org User: till.kamppeter
is the IP of my box, and I can print the test page, the problem is, that I get to a URL and when I continue from there I cannot do any admin access any more.
from cups.
CUPS.org User: mike
Is the IP address the same as the one logged in the access_log file?
from cups.
CUPS.org User: till.kamppeter
Below is the stuff written into access_log when going at first to
http://localhost:631/printers/lpdtest
and then clicking "Print Test Page" which lead to
http://192.168.100.184:631/printers/lpdtest?op=print-test-page
On the printer page all accesses go to localhost, on the driver page all except the "POST" go to 192.168.100.184.
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /printers/ HTTP/1.1" 200 0
localhost - - [23/Apr/2003:23:42:20 +0200] "POST / HTTP/1.1" 200 77
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /cups.css HTTP/1.1" 200 87
localhost - - [23/Apr/2003:23:42:20 +0200] "POST / HTTP/1.1" 200 105
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /images/printer-idle.gif HTTP/1.1" 200 706
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /images/print-test-page.gif HTTP/1.1" 200 288
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /images/stop-printer.gif HTTP/1.1" 200 252
localhost - root [23/Apr/2003:23:42:20 +0200] "GET /printers/ HTTP/1.1" 200 26024
localhost - root [23/Apr/2003:23:42:21 +0200] "GET /images/reject-jobs.gif HTTP/1.1" 200 252
localhost - root [23/Apr/2003:23:42:21 +0200] "GET /images/modify-printer.gif HTTP/1.1" 200 277
localhost - root [23/Apr/2003:23:42:21 +0200] "GET /images/config-printer.gif HTTP/1.1" 200 296
localhost - root [23/Apr/2003:23:42:21 +0200] "GET /images/delete-printer.gif HTTP/1.1" 200 267
localhost - root [23/Apr/2003:23:43:01 +0200] "GET /printers/lpdtest HTTP/1.1" 200 0
localhost - - [23/Apr/2003:23:43:02 +0200] "POST / HTTP/1.1" 200 77
localhost - - [23/Apr/2003:23:43:02 +0200] "POST / HTTP/1.1" 200 153
localhost - - [23/Apr/2003:23:43:02 +0200] "POST / HTTP/1.1" 200 125
localhost - root [23/Apr/2003:23:43:02 +0200] "GET /cups.css HTTP/1.1" 200 87
localhost - root [23/Apr/2003:23:43:01 +0200] "GET /printers/lpdtest HTTP/1.1" 200 3321
localhost - root [23/Apr/2003:23:43:02 +0200] "GET /images/show-completed.gif HTTP/1.1" 200 337
192.168.100.184 - - [23/Apr/2003:23:43:29 +0200] "GET /printers/lpdtest?op=print-test-page HTTP/1.1" 200 0
192.168.100.184 - - [23/Apr/2003:23:43:29 +0200] "GET /cups.css HTTP/1.1" 200 87
192.168.100.184 - - [23/Apr/2003:23:43:29 +0200] "GET /images/navbar.gif HTTP/1.1" 200 2869
localhost - - [23/Apr/2003:23:43:29 +0200] "POST /printers/lpdtest HTTP/1.1" 200 953226
192.168.100.184 - - [23/Apr/2003:23:43:29 +0200] "GET /printers/lpdtest?op=print-test-page HTTP/1.1" 200 1560
from cups.
CUPS.org User: till.kamppeter
The same problem also occurs on
http://localhost:631/printers/
When I click on a local printer (queue name or printer icon on the left) to get to the printer´s page I get also
http://[Server]:631/printers/[queue]
instead of the expected
http://localhost:631/printers/[queue]
when I have "ServerName [Server]" in my /etc/cups/cupsd.conf. So if I want to go to a printer´s page for administration, I cannot access the admin stuff any more as I am not on localhost any more.
from cups.
CUPS.org User: mike
Does the problem occur if you set HostNameLookups to "on"?
from cups.
CUPS.org User: till.kamppeter
Yes, when I set "HostNameLookups On", it works as expected. Local printers in the printer list have "http://localhost:631/..." links and also the "Print Test Page" links are pointing to "http://localhost:631/...". Now I am wondering why without "HostNameLookups On" I get the network interface IP and not "127.0.0.1".
from cups.
CUPS.org User: mike
Because the local IP != localhost (it isn't the loopback interface)
If you want to use a servername that isn't the value of gethostname, then you need to enable hostname lookups.
from cups.
Related Issues (20)
- how to create a backend that can be CUPS recognize? HOT 2
- Epson Stylus Photo R800
- Margin issue from postscript file - cups filters v1.28+ HOT 2
- Landscape Orinentation and Character Issue
- Can I change pdf to urf format in CUPS?
- Ghostscript stopped with status 255 HOT 2
- Cups saying the the document has been printed but physical printer not shwogin
- CUPS filling up error logs linux mint 21.3 Cinnamon HOT 1
- Windows 10 22H2 couldn't connect to the printer...
- cups 2.4.8 on Fedora: printer's Job list renders "Not Found" webpage!?! HOT 1
- No correct paper / page sizes in Windows
- Can't change between landscape- and potraitformat on duplex printing
- When printing a document of type "image/pwg-raster", the error "client-error-document-format-error" occurs.
- Physical Print Unavailible
- job.c: we need to remove the repeated getting time-at-creation in function cupsdLoadJob
- Request to add support for Muratec MFX-2550 laser Printer/MFU HOT 9
- IPP is NO match for Appsocket/Jetdirect with PPD
- [Question]: How to configure the ppd with watermark?
- Do not automatic cancel job please! HOT 1
- i need to set up printer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cups.