You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Harry Putnam <re...@newsguy.com> on 2005/10/04 18:49:23 UTC
[users@httpd] Simple way to make directories display a list of its files
What is the simpliest way to make apache display a list of files when
a directory is hit with browser?
I'm reading the online manual about Options Indexes but I don't think
I'm getting the full picture since my attempts fail.
On gentoo linux with apache2
I'm inserting this into a stock gentoo conf file:
<Directory /hpweb/TrainingVids/DigitalPhotography>
Options +Indexes
</Directory>
But I see only this error:
You don't have permission to access
/hpweb/TrainingVids/DigitalPhotography/ on this server.
ls -ld /var/www/localhost/htdocs/hpweb/\
TrainingVids/DigitalPhotography/
drwxrwxrwx 9 reader users 392 Oct 4 11:15 \
/var/www/localhost/htdocs/hpweb/TrainingVids/DigitalPhotography/
Shows my user and group and execute by all.
What should I be doing to debug this?
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Re: Simple way to make directories display a list of its files
Posted by Duncan Drury <d....@gmail.com>.
> Speaking of log messages... I keep seeing this in error_log:
>
> [Tue Oct 04 19:38:03 2005] [error] [client 192.168.0.4] File does not
> exist: /var/www/localhost/htdocs/favicon.ico
>
> How can I tell what is looking for this file. And where to get it?
Many recent browsers automatically request a favicon.ico located in the root
directory of all sites they visit. It is the little icon you see next to
the URL and Bookmarks for some sites.
There is a handy web application for making these from any image file at
http://www.chami.com/html-kit/services/favicon/ - if you save one of these
as favicon.ico in the root of each site you will stop seeing these error
messages. They are safely ignorable too.
Dunx
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Simple way to make directories display a list of its files
Posted by Harry Putnam <re...@newsguy.com>.
Joshua Slive <js...@gmail.com> writes:
> On 10/4/05, Harry Putnam <re...@newsguy.com> wrote:
>> <Directory /hpweb/TrainingVids/DigitalPhotography>
>> Options +Indexes
>> </Directory>
>
> <Directory> refers to filesystem directories, not web directories.
> You need to tag /var/www/localhost/htdocs on the front.
>
> In general, always check the error log when you run into stuff like this.
>
> Joshua.
Haa... thanks, yes that did it. Now about that log message:
(error_log)
[Tue Oct 04 19:32:57 2005] [error] [client 192.168.0.4] Directory
index forbidden by rule:
/var/www/localhost/htdocs/hpweb/TrainingVids/DigitalPhotography/,
referer: http://reader.local.net0/hpweb/TrainingVids/
Is there some way I could have made apache tell me what `rule' as in
`forbidden by rule:' above, has been violated?
I tried setting log level to debug but saw nothing more.
Speaking of log messages... I keep seeing this in error_log:
[Tue Oct 04 19:38:03 2005] [error] [client 192.168.0.4] File does not
exist: /var/www/localhost/htdocs/favicon.ico
How can I tell what is looking for this file. And where to get it?
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Simple way to make directories display a list of its files
Posted by Joshua Slive <js...@gmail.com>.
On 10/4/05, Harry Putnam <re...@newsguy.com> wrote:
> <Directory /hpweb/TrainingVids/DigitalPhotography>
> Options +Indexes
> </Directory>
<Directory> refers to filesystem directories, not web directories.
You need to tag /var/www/localhost/htdocs on the front.
In general, always check the error log when you run into stuff like this.
Joshua.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org