PDA

View Full Version : Change apache directory



benv99
2nd October 2006, 11:03 PM
I am using Apache on OS 10.3
I want to change the directory for 10.1.1.17 to something i can access easily across a network (and on PCs). Currently, the only accessible folder over the network is linked to 10.1.1.17/~ben/
Can someone please inform me of how to change the source directory (for apache) to a directory within my shared 'user' directory - possibly even "/user/ben/sites(or other)
Hope this makes sense.

Currawong
2nd October 2006, 11:20 PM
http://10.1.1.17/~ben/ will access /Users/ben/Sites.

Does that help?

If not, you have to edit /etc/httpd/httpd.conf and change every entry of /Library/WebServer/Documents to whatever alternative you'd prefer.

BiRDBRAiN
3rd October 2006, 12:11 AM
Yep you will have to look for a line that starts with

DocumentRoot... (assuming your not using vhosts)

And look for the corresponding <Directory... entry which deals with permissions etc.

spilla
3rd October 2006, 12:34 AM
You could put your website into the directory of /Library/Webserver/Documents/ and then the site will be at 10.1.1.17, or whatever your IP is.

jonathanpoh
3rd October 2006, 09:10 AM
HeadDress ( http://headdress.twinsparc.com/ ) allows you to easily set up web hosting from any folder on your drive, without having to mess about with the httpd.conf files. I&#39;m not related to the developer but I do web design and downloaded the trial last week to give it a go (limits you to 2 sites) but I think I will fork out for it, it&#39;s just too convenient&#33;

Currawong
3rd October 2006, 09:32 AM
You could always install SharePoints and create a file sharing link to /Library/WebServer/Documents as a third option.

MacDave
3rd October 2006, 09:34 AM
<div class='quotetop'>QUOTE(Currawong &#064; Oct 2 2006, 04&#58;32 PM) 220440</div>

You could always install SharePoints and create a file sharing link to /Library/WebServer/Documents as a third option.
[/b]


Or just use symlinks keeping in mind that Apache sees symlinks but not aliases.