Answer the question
In order to leave comments, you need to log in
How to set up VirtualHost correctly?
Hello, help me solve the problem.
There are 2 domains: apache-root.dev
and apache-children.dev
.
How to make access to apache-children.dev
through 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>
apache-root.dev/children
but apache-root.dev
throws 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 questionAsk a Question
731 491 924 answers to any question