Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache e .htaccess
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
f0llia
l33t
l33t


Joined: 22 Apr 2003
Posts: 873

PostPosted: Mon May 29, 2006 12:45 pm    Post subject: Apache e .htaccess Reply with quote

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
View user's profile Send private message
mrfree
Veteran
Veteran


Joined: 15 Mar 2003
Posts: 1303
Location: Europe.Italy.Sulmona

PostPosted: Mon May 29, 2006 1:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
f0llia
l33t
l33t


Joined: 22 Apr 2003
Posts: 873

PostPosted: Mon May 29, 2006 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
diego_82
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 257
Location: Londra

PostPosted: Mon May 29, 2006 1:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
f0llia
l33t
l33t


Joined: 22 Apr 2003
Posts: 873

PostPosted: Mon May 29, 2006 1:59 pm    Post subject: Reply with quote

è stato un errore di battitura..
se guardi piu sotto c'e il file giusto con i relativi permessi
Back to top
View user's profile Send private message
X-Act!
Apprentice
Apprentice


Joined: 22 Nov 2004
Posts: 245
Location: /home/xact/

PostPosted: Wed May 31, 2006 12:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum