W
W
WQP2017-09-12 18:05:55
Apache HTTP Server
WQP, 2017-09-12 18:05:55

How to set up VirtualHost correctly?

Hello, help me solve the problem.
There are 2 domains: apache-root.devand apache-children.dev.
How to make access to apache-children.devthrough apache-root.dev/children?
Tried like this:

<VirtualHost *:80>

    ServerName apache-root.dev
    DocumentRoot "%sprogdir%/domains/apache-root.dev/children"

    Alias "/children" "%sprogdir%/domains/apache-children.dev"

</VirtualHost>

It turned out to go through apache-root.dev/childrenbut apache-root.devthrows a 404 error.

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