Mobile app version of vmapp.org
Login or Join
Cody1181609

: Grant Permission to File Folder I am making a website, and I want the users to be able to access a file folder. I have a link to a folder. When I do this locally, all works fine.

@Cody1181609

Posted in: #Files #Folder #Localhost #Permissions

I am making a website, and I want the users to be able to access a file folder. I have a link to a folder. When I do this locally, all works fine. But when I upload it to my site, I get:

Forbidden

You don't have permission to access /MyFileSystem/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


There are nothing but text files (.cs) and subfolders in the main folder.

How can I grant permissions to the world to view that folder system?

I am looking for it to be along the lines of this:

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cody1181609

1 Comments

Sorted by latest first Latest Oldest Best

 

@Becky754

Okay. This is a fairly easy one.

Here is a link to some documentation you want to become familiar with. It is a bit difficult to understand at fist, but I promise you this stuff is really easy once you start to get into it. Keep reading the documentation and do a few searches around the net for examples and you will soon get it.
httpd.apache.org/docs/current/howto/htaccess.html
In this case, you want to create an .htaccess file in the directory where you want your listing. Then put the following into the file:

Options +Indexes


Save the file. That is it. See? Easy! Just make sure you are not putting in dangerous files that are executable. For that, come back and we will have to explore more on how to make it secure for that. But that does not sound like what you are doing anyway.

Somewhere in the documentation are some instructions on customizing the look of the directory that is created if that is what you want to do. I generally leave it as is.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme