Current time: 04-26-2024, 10:14 AM Hello There, Guest! (LoginRegister)


Post Reply 
Comment protéger le répertoire /stats/ avec awstats statique
Author Message
momo Offline
Junior Member
*

Posts: 148
Joined: Jun 2008
Reputation: 1
Post: #2
RE: Comment protéger le répertoire /stats/ avec awstats statique
edit ce fichier

Code:
# nano /etc/apache2/sites-enabled/01_awstats.conf

pour qu'il ressemble à ça

Code:
<Directory /usr/lib/cgi-bin>
AllowOverride All
Options +ExecCGI
DirectoryIndex awstats.pl
Order allow,deny
Allow from all

AuthType Basic
AuthName "AWStats"
AuthUserFile /var/www/.htpasswd //l'endroit ou tu vas créer ton fichier
AuthGroupFile /dev/null ///dev/null = group n'existe pas
Require user USER1 USER2 USER3
</Directory>[/code]

Ensuite, tu va créer ton fichier qui va contenir tes password :

//créer fichier
Code:
# htpasswd -c /var/www/.htpasswd [USER1
//ajouter user
Code:
htpasswd /var/www/.htpasswd [USER2]

redémarre apache

Code:
# /etc/init.d/apache2 reload

bonne chance
(This post was last modified: 06-14-2008 11:37 AM by momo.)
06-14-2008 11:32 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Comment protéger le répertoire /stats/ avec awstats statique - momo - 06-14-2008 11:32 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)