Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a website that needs to allow some downloads of some very large files that are on an external hard drive. I've made an alias and it works, but I just get "403 forbidden" whenever I try to look at anything on the hard drive. I tried chmod and chown to solve the problem, but they don't work on a FAT drive. Reformatting the drive or putting everything on the internal hard drive is not an option as there is nowhere else with enough space to put all these files. Can someone please tell me how to make Apache access them?

share|improve this question

2 Answers 2

you probably need to setup a <Directory> tag to allow access to the directory.

share|improve this answer

I figured it out eventually. I had to unmount the drive, recreate the drive's folder under "/media" and chown:chgrp it for www-data, and then remount the drive manually setting the user and group id to www-data.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.