Setting folder attributes with FTP
March 24, 2012 4:10 AM   Subscribe

I'm using FileZilla to ftp files to my web server. I want these directories and files to be viewable to the public so they can browse the folders, find the document they'd like to view and download it to their computer. I'm having trouble figuring out the correct file attributes, which you can set with FileZilla.

Example of my site. www.domain.com/docs/folder_a/example.pdf.

I'd like the 'docs' folder and everything below (sub folders and files) to be publicly viewable via their web browser of choice. I'm just having problems finding the correct folder attributes to accomplish this. I keep getting 403 forbidden errors in my browser.

Thanks much!
posted by Jackie_Treehorn to Computers & Internet (5 answers total) 3 users marked this as a favorite
 
Best answer: I don't think that is something you can set with filezilla, its generally an apache (or webserver or your choice) setting. I you can use .htaccess files on your web server trying creating one with the following line:

Options +Indexes
posted by missmagenta at 4:42 AM on March 24, 2012


Response by poster: I do have access to .htaccess. How can I restrict folder listing to just a selected and or child sub folders? Do I just make a new .htaccess in the folders I wish to make viewable?
posted by Jackie_Treehorn at 4:51 AM on March 24, 2012


You can put an htaccess file in each folder, yes.
posted by backwards guitar at 4:57 AM on March 24, 2012


Response by poster: Thank you very much. That works great!

One additional question, since you seem to know your way around this area. When a user views the directories with the browser, the file names are longer than the 'file' colomn allows to be seen. I'd like to do one of the following for the files that are contained in the folders. Edit the width of the file column or have the server automatically generate something for the 'description' column that is currently empty. I'll assume this is another magical .htaccess hack?
posted by Jackie_Treehorn at 5:10 AM on March 24, 2012


Response by poster: I'll answer my own question as I just found the answer here:

http://www.debian-administration.org/articles/195
posted by Jackie_Treehorn at 5:14 AM on March 24, 2012 [1 favorite]


« Older I have an issue with a UTI... on a Mac.   |   Mr. Math Monster, I presume? Newer »
This thread is closed to new comments.