Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

typecase

macrumors 6502
Original poster
Feb 2, 2005
396
407
Hello all,

I was wondering is there any way to change the location of the username/Sites folder to a different volume? I've tried doing so by editing the /etc/apache2/users/username.conf file and changing the directory string to a different volume from
Code:
<Directory "/Users/myname/Sites/"> to <Directory "Volumes/Sites">

with no luck. I still get a Forbidden message. I did change ownership as suggested by this document by Apple.

Can anyone help? I'm not getting anywhere with searches on this topic.
 
Hello all,

I was wondering is there any way to change the location of the username/Sites folder to a different volume? I've tried doing so by editing the /etc/apache2/users/username.conf file and changing the directory string to a different volume from
Code:
<Directory "/Users/myname/Sites/"> to <Directory "Volumes/Sites">

with no luck. I still get a Forbidden message. I did change ownership as suggested by this document by Apple.

Can anyone help? I'm not getting anywhere with searches on this topic.

You forgot the leading /. "Volumes/Sites" refers to a relative path, namely
"/Users/myname/Sites/Volumes/Sites".

Why do you want to move the folder? You might be better off creating a sym link to the folder. In /Users/myname create a sym link as follows...
cd /Users/myname
mv Sites NotSites
ln -s /Volumes/Sites Sites

You now have a sym link pointing to /Volumes/Sites. This will not work unless your apache config or .htacess contains the following...

options followsymlinks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.