E
E
EvgMul2016-07-06 14:22:45
Apache HTTP Server
EvgMul, 2016-07-06 14:22:45

How to properly configure Apache in OpenServer?

Hello. The situation is the following.
On OpenServer, one of the hosts needs to be configured as follows:

<VirtualHost %ip%:%httpport%>
DocumentRoot "%sprogdir%/domains/mysite/web"
ServerName "crmapp.org"
ServerAlias "crmapp.org"
<Directory "%sprogdir%/domains/mysite/web">
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
        <IfModule mod_authz_core.c>
        Require all granted
        </IfModule>
    </Directory>
</VirtualHost>

But after that, all other hosts start referencing this one. Apparently somewhere I write incorrectly, but I can not understand where. Tell me please.
Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question