Hi.
I use my websites only for download directories so they are not in production much, however recently when i attempted to browse one of them I got the following error.
Forbidden
You don't have permission to access /perf on this server.
This seems to be happening across the board, it also seems to happen when i create new websites, the default permissions seem to be for new websites as follows
drwxr-x--- 4 zeyna psaserv 4096 Oct 27 11:39 httpdocs
drwxr-x--- 4 zeyna psaserv 4096 Oct 27 11:39 httpsdocs
Is there something I should be changing?
Thnks for any advice!
Apache Permissions
-
- Forum User
- Posts: 93
- Joined: Sun Feb 13, 2005 2:24 pm
- Location: TN
My permissions look just like the ones you have displayed. Are you sure that was the fix?
The "Forbidden" error you are getting is not actually from the filesystem, it's from Apache. More than likely, something changed to restrict / prevent "directory browsing", which is the feature that lets you see the contents of a directory when there's not a default page (such as index.html). Generally, that's good practice, but it's not always what you want.
Did this happen after an update of Plesk or Apache?
The "Forbidden" error you are getting is not actually from the filesystem, it's from Apache. More than likely, something changed to restrict / prevent "directory browsing", which is the feature that lets you see the contents of a directory when there's not a default page (such as index.html). Generally, that's good practice, but it's not always what you want.
Did this happen after an update of Plesk or Apache?
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
You make folders browsable via apache by sticking something like this in a .htaccess file inside the folder you want browsable:
The Indexes option makes the folder browsable if there is no DirectoryIndex file (like index.html or index.php for instance). See http://httpd.apache.org/docs/2.0/mod/core.html#options te learn more about the Options keyword.
Using IndexOptions you can control more about how your index is displayed. See http://httpd.apache.org/docs/2.0/mod/mo ... dexoptions for more on this.
Code: Select all
Options Indexes FollowSymLinks
IndexOptions +FancyIndexing +FoldersFirst
Using IndexOptions you can control more about how your index is displayed. See http://httpd.apache.org/docs/2.0/mod/mo ... dexoptions for more on this.
Lemonbit Internet Dedicated Server Management