Forum Moderators: phranque

Message Too Old, No Replies

How to configure apache share server configuration

         

nowlearner

2:30 pm on Jun 14, 2009 (gmt 0)

10+ Year Member



Hi,

currently I've installed Centos 5.3 on my laptop.

I've search FAQ on apache foundation, [httpd.apache.org...] but could not found any information on shared hosting configurations for apache.

Have googled "apache share configuration" but to no avail.

what I mean is inside /etc/httpd/conf/httpd.conf

DocumentRoot "/var/www/html"

now if this is a dedicated server, that's nothing wrong, but what if this is a share server configuration.

when we create users, a default home directory will be created,

/home/<user>
/home/<user2>

so how do I configure apache so that for different user they will have different document root?

I mean for user
document root wil be /home/user/wwwroot
for user 2
document root will be /home/user2/wwwroot

thanks

jdMorgan

8:10 pm on Jun 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Start here at apache.org: Virtual Hosts [httpd.apache.org]

Documentation is available for the more recent 2.x versions of the server as well. I cited Apache 1.3 mainly because you linked to the Apache 1.3 FAQ above.

Jim