Moving the users "Sites" folder to different volume

Discussion in 'macOS' started by typecase, Jul 12, 2011.

  1. typecase macrumors 6502


    Feb 2, 2005
    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
    <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.
  2. r0k macrumors 68040


    Mar 3, 2008
    You forgot the leading /. "Volumes/Sites" refers to a relative path, namely

    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
  3. typecase thread starter macrumors 6502


    Feb 2, 2005

Share This Page