Shoutbox

Configuring Apache Authentication And Authorisation - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Configuring Apache Authentication And Authorisation (/showthread.php?tid=52813)

Configuring Apache Authentication And Authorisation by rav0 on 11-10-2005 at 11:09 AM

I have been/am messing about with my configuration on my ISP provided webspace. They run Apache 2.0, and each user has their own directory, which they can configure through .htaccess.

I'm trying to forbid access for the whole site, but then allow access to all for certain files which I choose to make public.

I've got it working how I want, except for one part. My index file is index.php, and it is served to all. Pre security tweaking, somebody could request /rav0/ or /rav0/index.php and get the same result. Now, post security tweaking, requesting /rav0/index.php gives is the same as it was before, but requesting just /rav0/ wont serve the page, it throws a 403 at you.

I want to block access to /rav0/* then allow access to /rav0/index.php, and /rav0/ which gives the same as /rav0/index.php.

This is the part of my .htaccess that is giving me trouble

code:
Order deny,allow
Deny from all

<Files
index.php>
Allow from all
</Files>