Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3604318
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:58:57+00:00 2026-05-18T20:58:57+00:00

I have a system CentOS with Django and MySQL. /home/user1/ -/vhost/*.conf -/webapps/ abc.com xyz.com

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:58:58+00:00Added an answer on May 18, 2026 at 8:58 pm

    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:

    #This is your 'default' host, 
    #people accessing the site via IP-address will see this site.
    <VirtualHost *:80>
            ServerName abc.com
            ServerAlias xyz.com
            DocumentRoot /home/user1/webapps/
    </VirtualHost>
    
    #This is the 123 and 789 vhost
    <VirtualHost *:80>
            ServerName 123.com
            ServerAlias 789.com
            DocumentRoot /home/user2/webapps/
    </VirtualHost>
    

    You can add all directives as explained by the <VirtualHost> Directive

    EDIT: Updated question

    1. There is a module called
      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.
    2. Another solution might be mpm-itk,
      which appears to be more reliable.
      Read this serverfault question
      for more information, or visit their
      homepage.
    3. If you don’t want to use either of both modules, you could always create a new user and group, run both vhosts under that user, and make both homedirs readable to the user by setting their group to the new group.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have Xserver-less CentOS system for continuous integration. So no UI. I want to
Let's say we have system A comprising a MySQL database, with several tables. After
I have a centOS system(embedded and has very binaries) with the following /etc/hosts. $cat
I have a CentOS 5.7 linux server and use php5.3.x. On a pfSense system,
We have system here that uses Java JNI to call a function in a
I have System.Collections.Generic.Dictionary<A, B> dict where A and B are classes, and an instance
I have a system where I inject a script tag into the dom. The
I have a system where I specify on the command line the verbosity level.
I have a system that needs to send and receive data over an insecure
I have a System.Timers.Timer that increments a counter every 3 seconds. Another thread may

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.