Boyle Owen a écrit :
-----Original Message-----From: Josiane BERNILLON [mailto:Josiane.Bernillon@xxxxxxxxxx] Sent: Monday, October 02, 2006 11:57 AMTo: users@xxxxxxxxxxxxxxxx Subject: [users@httpd] Apache2 and directory listing HelloI run Apache (2.0.54) under Debian (Sarge) with PHP and Postgresql since some months. I just discover that directories listing dont'work. (I did'nt need it until today).I put option Indexes at the root of the server : it seems to be activate -->http: //myserver/..../exampledir/ returns a page with concatened HEADER and README files. But, whatever the files I put in "exampledir", the listing is empty.The problems is the same for every directory (icons for example, for which I never edit the standard conf!!!).What are the permissions on the files and can they be accessed by the web-server (ie, downloaded)? The fact that we get an idex page is proof that directory indexing *is* working, however, apache now maskes files that do not have read/download access from the webserver... Rgds, Owen BoyleDisclaimer: Any disclaimer attached to this message may be ignored.Just have a look :the listing of /icons/ on www.apache.org <http://www.apache.org/icons/> the listing of /icons/ <http://www.apache.org/icons/> on my server <http://atlas.ens-lsh.fr/icons/> the listingof ../docs/ <http://atlas.ens-lsh.fr/docs/>on my server <http://atlas.ens-lsh.fr/icons/>Anyone have an idea ??? Thanks ---------------------------------------------------------------------The official User-To-User support forum of the Apache HTTP Server Project.See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
In the global part of apache2.conf (not inside <Directory ..> or <Location ..>
... IndexOptions FancyIndexing VersionSort SuppressHTMLPreamble AddIcons ... ReadmeName README.html HeaderName HEADER.html IndexIgnore .??* *~ *# HEADER* README* RCS CVS * *.tmp *.TMP *.bak *.BAK .... Alias /icons/ "/usr/share/apache2/icons/" <Directory "/usr/share/apache2/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory>On the server root: <Directory /var/www/>
Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> Nothing for /var/www/docs/ And inside /var/www atlas:/var/www# ls -l total 60 drwxr-xr-x 2 root root 4096 2006-09-27 11:55 apache2-default ... drwxr-xr-x 2 jb staff 130 2006-09-29 19:02 docs ... -rw-r--r-- 1 jb staff 4031 2006-06-28 09:52 index.html ... atlas:/var/www# ls -l docs total 408 -rw-r--r-- 1 jb staff 180313 2006-09-27 08:23 accueilJgalith.jpg -rw-r--r-- 1 jb staff 100352 2006-09-29 11:42 ct_traitement_images.doc -rw-r--r-- 1 jb staff 120834 2006-09-29 11:14 ct_traitement_images.html -rw-r--r-- 1 jb staff 3357 2006-09-29 13:49 HEADER.html -rw-r--r-- 1 jb staff 26 2006-09-29 13:49 README.html Rgds Josiane Bernillon --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx