[mrtg] Re: Protecting MRTG Files

Alan Rader arader at finishlines.com
Mon Sep 18 20:56:07 MEST 2000


Ah, great, all I had to do was stop and start httpd. :)

Thanks



Alan Rader
Finish Line, Inc.
Network Administrator
arader at finishline.com
317-899-1022 x3529


-----Original Message-----
From: Daniel R. Kilbourne [mailto:drk at voyager.net]
Sent: Monday, September 18, 2000 1:16 PM
To: Alan Rader; MRTG
Subject: Re: [mrtg] Protecting MRTG Files


did you set up your httpd.conf file to allow protection?

here's an FAQ I wrote for work a while ago...


Here is how to password protect a directory in apache:
edit the httpd.conf
         add a section like this:
                 <Directory /export/home/netsite/httpd/blah>
                  AllowOverride AuthConfig
                 </Directory>

In that directory create a file called .htaccess and add this to the file:
AuthName www.blah.com
AuthType Basic
AuthUserFIle /home/httpd/access/.htpasswd
require valid-user


AuthName is the "context" of the authentication.
create the AuthUserFIle and add usernames and passwords like this: 
wages:jX2euHJNEp4Ck username:crypt
or use htpasswd to add them

then restart apache



At 01:08 PM 9/18/2000 -0500, Alan Rader wrote:

>Anyone have any experience with htpasswd?  I know this list is for MRTG,
but
>this has to do with me protecting access  :)
>
>Anyway, I created the .htaccess file in the directory I want to protect.  I
>then used the htpasswd to create the password file in the directory I
wanted
>it hidden in.  The .htaccess file points to that proper place.  But I can
>still get to the page without it prompting me for a user and pass.  This in
>on a unix based machine running apache.
>
>Is there anything I am missing?  Do I need to start or stop or restart any
>services or cron jobs?
>
>Thanks for any help or if you have a good source for this topic, a link
>would be great.
>
>
>
>Alan Rader
>Finish Line, Inc.
>Network Administrator
>arader at finishline.com
>317-899-1022 x3529
>
>
>--
>Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
>Archive     http://www.ee.ethz.ch/~slist/mrtg
>FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
>WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

___

Daniel R. Kilbourne
daniel.kilbourne at voyager.net
Voyager.net Network Engineer

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list