-1

I'm on CentOS 5 with Apache. I'm trying to make this directory get a 403 error and it still continues to show the index of.

Here's the .htaccess file. I gave it 644 permissions:

Options –Indexes

Thanks!

4
  • May I ask why my question was downvoted? I'm happy to supply more information at request. I don't really know what information I'd supply though. Let me know. Thanks. Dec 9, 2011 at 18:47
  • Do you have root access on the box? or can you request that changes be made to the apache configuration?
    – stew
    Dec 9, 2011 at 19:00
  • full root access Dec 9, 2011 at 19:11
  • if you can edit the apache configuration, then you should NOT be using .htaccess files. just put the configuration you need into the server config. Changing stuff in .htaccess is disabled by default because it opens up security problems and can have a big performance hit
    – stew
    Dec 9, 2011 at 19:14

2 Answers 2

1

Chances are the main config for that site doesn't have -/+Indexes allowed in it's AllowOverride directive

4
  • Thanks for the responce. Should it be set to this: AllowOverride None Dec 9, 2011 at 18:58
  • This is what it currently is: <Directory "/var/www/error"> AllowOverride None Options IncludesNoExec AddOutputFilter Includes html Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback </Directory> Dec 9, 2011 at 19:02
  • That's your problem :) AllowOverride Indexes
    – thinice
    Dec 9, 2011 at 19:02
  • Do I change the AllowOverride in <Directory "/var/www/error"> or <Directory /> ? Dec 9, 2011 at 19:07
0

The directory listing could be cached in your browser. Try clearing your browser cache, or pressing Shift+Reload.

1
  • I just tried that, no luck. Thanks for the suggestion though, didn't think of that. Dec 9, 2011 at 18:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .