Help - Search - Members - Calendar
Full Version: 403 Forbidden is killing me
The Planet Forums > Control Panels > Plesk
learjet
Folks:

I'm trying to setup a script that needs access to a folder on my server, example:

http://www.mydomain.com/morenews/

When I try to put this in the setup page for the script, or try to go directly to that address using a browser I get the following error:

403 Forbidden
You do not have permission to access this document

On my other server that has cpanel it would show a directory of what's in that folder but I can't figure out how to get Plesk to let me view the contents of the folder.

Is there a setting in Plesk that I have to change in order to see the files in this folder? I've already set the CHMOD for that folder on 777 but I still can't figure it out..

Thanks for your patience.

With Much Respect,
learjet
Squire
It's not really a Plesk issue learjet. It's an apache setting, which is pretty common and should probably be in place as a default setting.

To change it for that directory only, leaving the default setting to disallow Directory Browsing everywhere else, simply drop an .htaccess folder in that directory that says

CODE
Options +Indexes


No need to restart anything. It'll take effect immediately.
learjet
Squire,

I can't thank you enough for this. I installed that .htaccess file in the directory and it worked straight away.

Thanks Again,
learjet
Squire
My pleasure learjet.

.htaccess is your friend. Quite powerful and you can do all sorts of neat things with it. The best part is that it never requires you to restart anything. icon_wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.