Changing default WebServer folder?

uoba

Re: member
Can I change the default WebServer folder (/Library/Webserver/) to another partition?

I say this because it will become more managable to take it off the OSX system hard drive, and place it on another partition/drive.
 
Yup,

Edit /etc/httpd/httpd.conf and change the line: DocumentRoot "/Library/WebServer/Documents" to whatever directory or partition you like.

Once your done, you need to restart Apache with:

sudo apachectl restart

 
editing httpd.conf in pico, but when I try to save it cannot write. I guess I have to chmod the file, but couldn't fo this either. Any ideas?:confused:

**UPDATE** --> Did it. Managed to remember how to login as root.
Thanks;)
 
You need to ``sudo pico httpd.conf`` in case you logged in as root at the terminal and went through all that unecessary rigamaroll with Netinfo Manager... ;)
 
Back
Top