I have in my apache configuration:

<VirtualHost *:80>
    ServerName myserver1.domain
    DocumentRoot /path/to/dir1/
    AssignUserId user1 grp1
<VirtualHost *:80>
    ServerName myserver2.domain
    DocumentRoot /path/to/dir2/
    AssignUserId user2 grp2

When I have both servers(myserver1 and myserver2), only one server work. If I leave only one of the server it work for that specific server.
I need to have 2 servers that work with different users and groups

I have apache 2.4.7 installed on CentOS7.

How can I set it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.