Forum Moderators: phranque

Message Too Old, No Replies

macintosh/server roots/multiple sites

         

phoenixisland

7:05 pm on Aug 16, 2006 (gmt 0)

10+ Year Member



I have my php and apache running ok on my mac and i simply want to be able to change the root of the server to different sites in my sites directory because urls for images,css,js files aren't resolving. I'm just looking for a simple way to do this without going into virtual hosting. I'm not even sure if virtual hosting is the way it's usually handled.

also i'm pretty sure when i started my web sharing on the default setup [localhost...] resloved to my main user account now i see 2 index pages. localhost points to the default apache indel.html which I have no idea where it lives on my mac and the apple default index.html for my machine is only accessable now by [phoenix.local...] (phoenix being my user name) so I don't know what I did to mess this up?

any help would be greatly appreciated. my appologies if this has been covered. I've been searching through the posts without success.

thanks
phoenix

coopster

2:43 pm on Aug 21, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, phoenixisland.

If you have different sites, then Virtual Hosts are the way to go. They allow you to have different DocumentRoot directives for each container. The Apache [httpd.apache.org] Documentation for your server version will have a link to Virtual Hosts that will be a good starting point.