0

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!

Alex
  • 3
  • 1

1 Answers1

0

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

Options FollowSymLinks

to your vhost config.

Pascal Schmiel
  • 1,738
  • 12
  • 17