View previous topic :: View next topic |
Author |
Message |
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Mon May 29, 2006 12:45 pm Post subject: Apache e .htaccess |
|
|
Ciao a tutti,
ho un problema di autenticazione su apache.. ho installato nagios seguendo questa guida:
http://gentoo-wiki.com/HOWTO_Install_Nagios
Sembra funzionare tutto se non che non mi autentica....
Se faccio http://server/nagios mi richiede l'autenticazione, io inserisco user e pass (creati come da guida) ma nulla.. mi restituisce la stessa finestra...
insomma non riesco a autenticarmi....
Come posso risolvere ?
Grazie mille |
|
Back to top |
|
|
mrfree Veteran
Joined: 15 Mar 2003 Posts: 1303 Location: Europe.Italy.Sulmona
|
Posted: Mon May 29, 2006 1:23 pm Post subject: |
|
|
Controlla i log di apache (di default sotto /var/log/apache) per capire cosa succede _________________ Please EU, pimp my country!
ICE: /etc/init.d/iptables panic |
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Mon May 29, 2006 1:36 pm Post subject: |
|
|
ecco error_log:
Code: |
Mon May 29 15:33:48 2006] [error] [client 10.0.0.20] (13)Permission denied: Could not open password file: /etc/nagios/htpasswd.users
[Mon May 29 15:33:48 2006] [error] [client 10.0.0.20] user nagiosadmin not found: /nagios
|
ma nel file htpasswd.user l'utente c'e ..
e i permessi:
Code: |
-rw-r--r-- 1 apache apache 26 May 26 10:24 htpasswd.users
|
|
|
Back to top |
|
|
diego_82 Apprentice
Joined: 02 May 2004 Posts: 257 Location: Londra
|
Posted: Mon May 29, 2006 1:53 pm Post subject: |
|
|
f0llia wrote: | ecco error_log:
Code: |
Mon May 29 15:33:48 2006] [error] [client 10.0.0.20] (13)Permission denied: Could not open password file: /etc/nagios/htpasswd.users
[Mon May 29 15:33:48 2006] [error] [client 10.0.0.20] user nagiosadmin not found: /nagios
|
ma nel file htpasswd.user l'utente c'e ..
e i permessi:
Code: |
-rw-r--r-- 1 apache apache 26 May 26 10:24 htpasswd.users
|
|
vedi che il file deve essere
Code: | /etc/nagios/htpasswd.[b]users[/b] |
e non
Code: | /etc/nagios/htpasswd.[b]user[/b] |
|
|
Back to top |
|
|
f0llia l33t
Joined: 22 Apr 2003 Posts: 873
|
Posted: Mon May 29, 2006 1:59 pm Post subject: |
|
|
è stato un errore di battitura..
se guardi piu sotto c'e il file giusto con i relativi permessi |
|
Back to top |
|
|
X-Act! Apprentice
Joined: 22 Nov 2004 Posts: 245 Location: /home/xact/
|
Posted: Wed May 31, 2006 12:13 pm Post subject: |
|
|
Controlla anche i permessi delle directory che lo contengono: se apache non può entrare nella directory non può leggere il file neanche se ha i permessi di lettura... _________________ "Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di senso, ragione ed intelletto intendesse che noi ne facessimo a meno."
-- Galileo Galilei |
|
Back to top |
|
|
|