ppr-list-digest volume 4, number 7, message 3

Note: please don't spam any of the e-mail addresses which you see here. Follow this link if you want some addresses to misuse.


From: David Chappell <David.Chappell@mail.cc.trincoll.edu>
Date: Fri, 11 Jan 2002 17:22:01 -0500
Subject: Re: PPR: Apache conf additions for web interface?

Barry Trout wrote:

> Thanks ...but your are right ... I would like the authenication ... but
> the cookie login is not letting me in ....
> I even tried to run localhost:15010 as per README still no admin rights
> Is there a trick to getting the login_cookie to work
>
> my users are in all the allow files /etc/ppr/acl/*
> and in the /etc/ppr/htaccess file
> but still no dice
> I've tried 6.2 on Window and Linux.
>
> can you help?

Make sure the name and permissions of the htpasswd file is correct.  It 
is not called htaccess.

    bash-2.04$ ls -l /etc/ppr/htpasswd
    -rw-r--r--    1 ppr      ppr           250 Dec 20 13:00
    /etc/ppr/htpasswd

Also make sure that the 2nd field in htpasswd is "printing".

>
> by the way ... does it run faster under apache?

I don't know.  Someday I would like to get it working with Modperl.

>
> David Chappell wrote:
>
>> Barry Trout wrote:
>>
>>> Does anyone have some docs or an example of
>>> the necessary Apache configuration for the web interface? 
>>
>>
>>
>> At the momement, if you want to do anything that requires 
>> authentication, you have to use PPR's own web server.  If you want to 
>> set up Apache so that people can view queues and printer status, I 
>> have attached my current configuration below.
>>
>> ScriptAlias /ppr/cgi-bin/ "/usr/lib/ppr/cgi-bin/"
>> Alias /ppr/ "/usr/share/ppr/www/"
>>
>> <Location /ppr/>
>>  AllowOverride None
>>  Options None
>>  Order deny,allow
>>  #Deny from all
>>  Allow from localhost
>> </Location>
>>
>> <Location /ppr/cgi-bin/>
>>  AllowOverride None
>>  Options +ExecCGI
>>  #AuthType Digest
>>  #AuthName "printing"
>>  #AuthDigestFile /etc/ppr/htpasswd
>>  #AuthDigestDomain /ppr/cgi-bin/
>>  #require valid-user
>>  Order deny,allow
>>  Deny from all
>>  Allow from localhost
>> </Location>
>>
>>
>
>
>


- -- 
================================================================
David Chappell			David.Chappell@Mail.Trincoll.Edu
Computing Center		Postmaster@Mail.Trincoll.Edu
Trinity College			(860) 297-2114
Hartford, Connecticut 06106
U.S.A.