我只有两个网站指向我的服务器 IP,Asite.com
并且Bsite.com
. 我尝试添加一个网站,所以我指向Csite.com
了我的服务器 IP(但我还没有为 site3.com 注册虚拟主机)。即使我没有注册虚拟主机,当我访问Csite.com
apache时怎么会识别它?Asite.com
Csite.com
httpd.conf
Listen 8080
NameVirtualHost *:8080
网站
<VirtualHost *:8080>
ServerAdmin webmaster@localhost
ServerName asite.com
ServerAlias asite.com *.asite.com
DocumentRoot /var/www/asite.com/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/asite.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/error_log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
</VirtualHost>
^同样适用于Bsite.com