Apache同一个IP上配置多域名

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@yourdomain.com
DocumentRoot "D:/www/test"
<Directory "D:/www/test">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.php index.html index.htm 
AllowOverride Options FileInfo
Order Deny,Allow
Allow from all 
</Directory>
ServerName www.test.com
</VirtualHost>
 

有关注的可以加微信共同讨论一下!

原文地址:https://www.cnblogs.com/kevinws/p/6471980.html