Apache natively configures multiple domain names

 

The key is to comment out the two lines of configuration in httpd.conf

LoadModule vhost_alias_module modules/mod_vhost_alias.so

Include conf/extra/httpd-vhosts.conf

Otherwise, Apache will resolve all local domain name requests to the first VirtualHost configuration.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326119718&siteId=291194637