View previous topic :: View next topic |
Author |
Message |
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Wed Jul 18, 2007 7:53 pm Post subject: Allow Directory Listing |
|
|
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 |
|
|
Dan Veteran
Joined: 25 Oct 2005 Posts: 1302
|
Posted: Wed Jul 18, 2007 9:06 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
Posted: Thu Jul 19, 2007 12:34 am Post subject: |
|
|
What is the output of ls -la /path/to/directory/to/be/listed? |
|
Back to top |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Thu Jul 19, 2007 1:08 am Post subject: |
|
|
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 |
|
|
alphis n00b
Joined: 12 Jul 2007 Posts: 70
|
Posted: Thu Jul 19, 2007 1:34 am Post subject: |
|
|
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 |
|
|
|