Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Apache DirectoryIndex whoes
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
Darknight
Guru
Guru


Joined: 26 Jan 2004
Posts: 469
Location: Italy

PostPosted: Wed May 29, 2013 7:47 am    Post subject: [solved] Apache DirectoryIndex whoes Reply with quote

I'd like to have a single index.php as index file of a whole branch of the website, here is the config:

<Directory "/var/www/localhost/htdocs/docs">
Options -Indexes FollowSymLinks
DirectoryIndex index.php /var/www/localhost/htdocs/docs/index.php

Now if I request /docs/ index.php (which resides in that directory) will load correctly, if I request any subdirectory it won't load and, by virtue of -Indexes, I'll receive a 403 error.
Could someone point me in the right direction? The apache docs are adamant that absolute paths may be used in DirectoryIndex (cgi for example) but as a matter of fact it doesn't seem to work for me.
Thanks in advance.

EDIT: the "absolute" path is based in the documentroot, so /docs/index.php works.
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