Home  >  Article  >  Backend Development  >  Configure multiple virtual directories for apache22. Come back later.

Configure multiple virtual directories for apache22. Come back later.

WBOY
WBOYOriginal
2016-08-08 09:21:12929browse

apache2.2 How to configure multiple virtual directories
Directory 1 Domain name 1
Directory 2 Domain name 2
Directory 3 Domain name 3
But when accessing 3 domain names, all refer to directory 1
There is no problem if you change it to apache2.4

The reason is:

apache2.2 is not enabled by default NameVirtualHost

NameVirtualHost *:80

You can add it manually

Copyright statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces how to configure multiple virtual directories in apache22. I will come back later and include the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn