0

I want to use apache to host the files of my two pen drives but also from a folder inside /home/pi. I can set the root directory of apache to /home/pi but what about the pen drives? Don't wanna set the directory to / because I only want to make /media and /home/pi/downloads accesible through apache.

3

You can create symlinks in this directory and add this option to you site config:

 <Directory />
        Options FollowSymLinks
 </Directory>
| improve this answer | |
  • 2
    If you don't know what a symlink is, see here. An example of creating a symlink on linux would be ln -s /mnt/usb/foo /var/httpd/bar. This links the latter to the former. The -s important, see man ln. – goldilocks Feb 18 '15 at 14:00

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