[cups] Looking for help to install CUPS

Douglas Kosovic doug at uq.edu.au
Tue Mar 12 05:29:48 PDT 2024


Sorry didn't see the response from Axel and overlooked your response to his response, so some of my answers are irrelevant.

My suggestion about using ServerName and HostNameLookups might help with the IP address issue.

I also assumed you did similar modifications to the Location sections of the cupsd.conf file as on the older CUPS server. 


Doug

-----Original Message-----
From: Douglas Kosovic <doug at uq.edu.au> 
Sent: Tuesday, March 12, 2024 10:07 PM
To: The CUPS user discussion list. <cups at cups.org>
Subject: Re: [cups] Looking for help to install CUPS

Hi  Gopi,

> And then add following lines to cupsd.conf
> 
> Listen mycups.com:631
> BrowseAddress All
> ServerAlias *

I don't think the above cupsd.conf configuration is your issue.

On the new CUPS server, confirm the web interface is working there with the following command :
   curl http://mycups.com:631

I would recommend keeping a cups.sock line for localhost cups command-line commands. From memory I had to use ' ServerName for upgrade redirection from http to https to not replace the server hostname with an IP address (maybe also needed 'HostNameLookups On'). Anyway, this is what I'm using:

Port 631
Listen /run/cups/cups.sock
ServerAlias *
ServerName mycups.com
HostNameLookups On

> This way when I enter mycups.com on browser it was taking me to the 
> cups web URL. I want to do same thing with 2.3.3 however I am getting 
> 502 bad gateway. I am not sure what I am doing wrong.

A web proxy is most likely returning HTTP status 502 bad gateway and chances are it can't connect to your news CUPS server. I have no idea of the network topology and setup, maybe the old CUPS server was being bypassed by the web proxy.



Cheers,
Doug

_______________________________________________
cups mailing list
cups at cups.org
https://lists.cups.org/mailman/listinfo/cups


More information about the cups mailing list