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

please need help...
[LINUX]

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

1 Answer 1

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

 
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.