Problem
I have installed OpenServer 6.0.0 and want to access the web interface of CUPS on port 631.
http://<CUPS server IP address>:631I get the following authorization error:Forbidden You don't have permission to access the resource on this server.
or the web page cannot be found.
What do I need to do to be able to administer the CUPS server via web on port 631?
Solution
You need to edit the file /etc/cups/cupsd.conf.
Before:
======
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sockAfter:
=====
# Only listen for connections from the local machine.
Port 631
Listen localhost:631
Listen /var/run/cups/cups.sockThis will enable remote access to the web interface of CUPS.
If you want remote access for a specific client you have to make further changes to /etc/cups/cupsd.conf.
Before:
======
# Restrict access to the server...
<Location />
Order allow,deny
</Location># Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order allow,deny
</Location>After:
=====
# Restrict access to the server...
<Location />
Order allow,deny
Allow 192.168.246.87
</Location># Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order allow,deny
Allow 192.168.246.87
</Location>This will allow the client 192.168.246.87 to access the CUPS web interface.
Note that you can also use wildcards in the Allow statement e.g. Allow 192.168.246.*
You have to restart CUPS with:# /etc/rc2.d/S99cups restart See also
TA126211 for pre-MP4 CPUS.