Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Allow Directory Listing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
alphis
n00b
n00b


Joined: 12 Jul 2007
Posts: 70

PostPosted: Wed Jul 18, 2007 7:53 pm    Post subject: Allow Directory Listing Reply with quote

Normally to accomplish this you put an .htaccess file in the folder and use the line:
Options +Indexes

but this isn't working as I am still getting error 403 permission denied for file listing. Anyone know how I can fix this?
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Wed Jul 18, 2007 9:06 pm    Post subject: Reply with quote

The default apache2 configuration in gentoo allows indexes.
There should be no configuration necessary really.
see /etc/apache2/vhosts.d/default_vhost.include
has options indexes FollowSymLinks
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Thu Jul 19, 2007 12:34 am    Post subject: Reply with quote

What is the output of ls -la /path/to/directory/to/be/listed?
Back to top
View user's profile Send private message
alphis
n00b
n00b


Joined: 12 Jul 2007
Posts: 70

PostPosted: Thu Jul 19, 2007 1:08 am    Post subject: Reply with quote

ls -la in the dir listed in documentroot is:

0 -rw-r--r-- 1 myname users 0 Jul 18 13:47 test.blah


As you can see its just a regular file. Which cannot be listed for some reason.

Also that file:

/etc/apache2/vhosts.d/default_vhost.include

does indeed have the line: has options indexes FollowSymLinks

which doesn't seem to do much =[

Any help is appreciated!
Back to top
View user's profile Send private message
alphis
n00b
n00b


Joined: 12 Jul 2007
Posts: 70

PostPosted: Thu Jul 19, 2007 1:34 am    Post subject: Reply with quote

Ok I've fixed it. I renamed the file 00_default_vhost.conf to default_vhost.conf and all was well. Well, after I changed settings in the virtualhost directive.

Thanks all.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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