Newsgroup: it.comp.os.linux.iniziare
Titolo: Vedere contenuto directory

Ho un server che gestisco io ("linux" + Apache ecc...) con una serie
di virtual host. Di default se vado in una directory di cui conosco il
percorso (es: 
www.miosito.com/prova/mia_dir
) ottengo "Error 403
Forbidden - You don't have permission to access /prova/mia_dir/ on
this server."
Mi pare di aver capito che io debba scrivere qualcosa nell'httpd.conf:
dove? come?
TIA
-- 
La rovina del mondo sarà l'indifferenza...
...ma chi se ne fregaaa!

 
Devi avere il modulo di apache mod_autoindex.
Io ho la configurazione in /etc/httpd/conf/commonhttpd.conf (mdk 9.2), di
seguito ti incollo il pezzo di file di configurazione che ti interessa
,---- Estratto da commonhttpd.conf (inizio) -------------
#
# Directives controlling the display of server-generated directory listings.
#
<IfModule mod_autoindex.c>
    #
    # FancyIndexing is whether you want fancy directory indexing or standard
    #
    <IfDefine !APACHE2>
      IndexOptions FancyIndexing NameWidth=*
    </IfDefine>
    <IfDefine APACHE2>
      IndexOptions FancyIndexing VersionSort NameWidth=*
    </IfDefine>
    #
    # AddIcon* directives tell the server which icon to show for different
    # files or filename extensions.  These are only displayed for
    # FancyIndexed directories.
    #
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.png) text/*
    AddIconByType (IMG,/icons/image2.png) image/*
    AddIconByType (SND,/icons/sound2.png) audio/*
    AddIconByType (VID,/icons/movie.png) video/*
    AddIcon /icons/binary.png .bin .exe
    AddIcon /icons/binhex.png .hqx
    AddIcon /icons/tar.png .tar
    AddIcon /icons/world2.png .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.png .Z .z .tgz .gz .zip .bz2
    AddIcon /icons/a.png .ps .ai .eps
    AddIcon /icons/layout.png .html .shtml .htm .pdf
    AddIcon /icons/text.png .txt
    AddIcon /icons/c.png .c
    AddIcon /icons/p.png .pl .py .php .php3
    AddIcon /icons/f.png .for
    AddIcon /icons/dvi.png .dvi
    AddIcon /icons/uuencoded.png .uu
    AddIcon /icons/script.png .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.png .tex
    AddIcon /icons/bomb.png core
    AddIcon /icons/back.png ..
    AddIcon /icons/hand.right.png README
    AddIcon /icons/folder.png ^^DIRECTORY^^
    AddIcon /icons/blank.png ^^BLANKICON^^
    #
    # DefaultIcon is which icon to show for files which do not have an icon
    # explicitly set.
    #
    DefaultIcon /icons/unknown.png
    #
    # AddDescription allows you to place a short description after a file in
    # server-generated indexes.  These are only displayed for FancyIndexed
    # directories.
    # Format: AddDescription "description" filename
    #
    #AddDescription "GZIP compressed document" .gz
    #AddDescription "tar archive" .tar
    #AddDescription "GZIP compressed tar archive" .tgz
    #
    # ReadmeName is the name of the README file the server will look for by
    # default, and append to directory listings.
    #
    # HeaderName is the name of a file which should be prepended to
    # directory indexes.
    #
    # If MultiViews are amongst the Options in effect, the server will
    # first look for name.html and include it if found.  If name.html
    # doesn't exist, the server will then look for name.txt and include
    # it as plaintext if found.
    #
    ReadmeName README.html
    HeaderName HEADER.html
    #
    # IndexIgnore is a set of filenames which directory indexing should
ignore
    # and not include in the listing.  Shell-style wildcarding is permitted.
    #
    IndexIgnore .??* *~ *# HEADER* RCS CVS *,v *,t
</IfModule>
# End of indexing directives.
,---- Estratto da commonhttpd.conf (fine) -------------
-- 
Lorenzo "paulatz" Paulatto, Trieste