admin.cgi - Apache

Michael Sweet mike at easysw.com
Wed May 17 03:01:38 PDT 2006


Ruan wrote:
> Hi there :)
> 
> I've put admin.cgi and printer.cgi into my web directory. Modified the css and images. Using Apache. All is fine, I can brows through all the pages but I cant add or stop or delete a printer. The url for stop looks somthing like this http://localhost/admin?op=stop-printer&printer_name=2001 when clicking on this link it downloads admin.cgi. ? ? ? ?
> 
> The content-type = text/html as set in header.tmpl and as set by cgiStartHTML(..) in html.c of cgi-bin of cups sources ? ? ?
> 
> Q1: How do use cups- cgi's with apache?

You can't.  Apache doesn't support the certificate-based
authentication required by the CGIs.

> Q2: How do direct the cgi's to a diffrent set of templates? (I do not want to modify the default installation of cups)

The CGIs use the CUPS_DATADIR environment variable, if defined, to
find the "templates" subdirectory.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list