Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache mostra solo gli Index.* [RISOLTO]
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
cruentatio
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2004
Posts: 125

PostPosted: Wed Apr 06, 2005 11:30 am    Post subject: Apache mostra solo gli Index.* [RISOLTO] Reply with quote

Salve, ho un problema con Apache2. Prima usavo Debian ed ero riuscito a configurare tutto. Ma con Gentoo mi sono trovato dei file di configurazione un po diversi (gia qui non capisco perchè!), ma vabbhe.
Il problema è che riesco ad accedere ai link solo se li dentro c'è un file index. Se per esempio creo una sottodirectory dento alla dir che uso come puntatore a localhost, e cerco di accederci con un URL del tipo "http://localhsot/nuovadir", ottengo un accesso negato, mentre se ci metto un file index me lo mostra normalmente.
Io avrei bisogno di far accedere a dir con dentro semplici file, facendo in modo che il browser faccia semplicemente vedere la lista dei file.
Cosa devo mettere nei file di config??

Grazie mille.


Last edited by cruentatio on Wed Apr 06, 2005 1:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Wed Apr 06, 2005 12:39 pm    Post subject: Reply with quote

Nel file di conf trovi una sezione Options ... li devi aggiugere Indexes... ad esempio
Code:
Options Indexes Includes FollowSymLinks


Se invece vuoi specificare per directory... qualcosa del genere
Code:
 <Directory "/var/www/html/xxx.ch/wb">
            Options Indexes
            AuthType Basic
            Authname "Vananti Resticted Area"
            AuthUserFile /etc/httpd/htpass_xxx
            Require user warner
            </Directory>

byebye
fat_penguin
Back to top
View user's profile Send private message
.:chrome:.
Advocate
Advocate


Joined: 19 Feb 2005
Posts: 4588
Location: Brescia, Italy

PostPosted: Wed Apr 06, 2005 12:53 pm    Post subject: Re: Apache mostra solo gli Index.* Reply with quote

leggi la documentazione di apache: esiste una direttiva che abilita il "directory listing".
per i file di configurazione la tua obiezione è giusta, ed è un problema già affrontato. pare che l'intenzione, per il futuro, sia quella di adottare il modello "standard"
Back to top
View user's profile Send private message
cruentatio
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2004
Posts: 125

PostPosted: Wed Apr 06, 2005 1:26 pm    Post subject: Reply with quote

Perfetto. Mi sono accorto che avevo

Options -Indexes

Ho tolto il "-" e ora funziona.
Grazie mille.
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