Want to change the “Personal Web Sharing” directory in OS X? It’s the folder (directory) where you are intended by Apple to put sites for viewing in Safari. You can alter this by editing one simple file.
In Terminal, cd your way to /private/etc/httpd/users
Then list the files with ls and you should see one file named yourOSXUserNameHere.conf
Open it in your text editor (with TextMate and its command line tool installed, mate username.conf)
At the very top you will see something like:
/Users/yourUserName/Sites/
This points to the Sites folder in your home directory. Change this path to whatever directory you want to use. (make sure to make a backup copy!) You may need to chmod the permissions, but probably not.
Change Your Personal Web Sharing Directory in OS X
February 13th, 2007 | Apache, OS X
0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment