Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

please need help...

I'm trying to set up a big photos folder in a new hdd over apache.

Before it was: /htdocs/photos now I'm trying to create a virtual directory:
<IfModule alias_module>
Alias /photos "/home/photos"
<Directory "/home/photos">
<IfModule alias_module>
Alias /photos "/home/photos"
<Directory "/home/photos">
...and it works accesing it from outside
but PHP when I upload a new photo it creates on the OLD /htdocs/photos not in /home/photos

What should I do? A symbolic link?? a bit insecure isn't it? I don't know
Thank you!

share|improve this question

A symlink from /home/photos to your htdocs/photos should be finde. Don't forget to add:

Options FollowSymLinks

to your vhost config.

share|improve this answer

Your Answer


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.