I have a system CentOS with Django and MySQL.
/home/user1/
-/vhost/*.conf
-/webapps/
abc.com
xyz.com
/home/user2/
-/vhost/*.conf
-/webapps/
123.com
789.com
Thanks for help!
UPDATE 1:
In httpd.conf:
User user1
Group apache
And httpd cannot access /home/user2/webapps.
You’ll want to read up on Apache Vhost Configuration.
Tell us what you tried, what is working, what is not working, or what you don’t understand.
Most common configuration
If your system has 1 IP address for all sites, you’re going to want something like this:
You can add all directives as explained by the
<VirtualHost> DirectiveEDIT: Updated question
perchild for apache that allows
to run different threads under
different users, configurable by
vhost. The module is not considered
functional, and not under current
development. Unless you know what
you’re doing or are willing to take
the risk, you probably shouldn’t use
it.
which appears to be more reliable.
Read this serverfault question
for more information, or visit their
homepage.