LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Awstats question (https://www.linuxquestions.org/questions/linux-server-73/awstats-question-798440/)

razzera 03-28-2010 10:23 AM

Awstats question
 
Hello

Im running a debian server an i just installed awstats. by default the awstats folder is http://mydomain.com/cgi-bin/awstats....g=awstats.conf and i now wonder how i can password protect it. /cgi-bin/ do not exist in the www root.

sci3ntist 03-28-2010 02:55 PM

This would be an easy step my friend,

<Directory "/path/to/cgi-bin">
AuthName "Your message"
AuthType Basic
AuthUserFile "/path/to/auth/file"
Require user VALID_USER
</Directory>

then, htpasswd -c /path/to/auth/file VALID_USER_NAME


All times are GMT -5. The time now is 10:23 AM.