阅读,有一部分是这样写的:
If no matching ServerName or ServerAlias is found in the set of virtual hosts containing the most specific matching IP address and port combination, then the first listed virtual host that matches that will be used.
我有一个包含许多虚拟主机域的vhost文件。问题是,当我键入服务器IP时,我应该转到root,但不是,正如apache文档所述,我被带到了第
我有一个服务器,它有两个web应用程序,配置如下:
app1:
www.domain1.com
has https version
app2:
www.domain1.com
has not https version
这是我的VirtualHost domain1配置:
Listen 443
NameVirtualHost *:443
SSLStrictSNIVHostCheck off
<VirtualHost --ip--:80>
ServerName www.domain1.com
DocumentRoot /usr/local/ROOT
<
我在Windows计算机上安装了WAMP。
我想在以下地址设置几个虚拟服务器:
127.0.0.1 to localhost/website1/
127.0.0.2 to localhost/website2/
下面是我的主机文件的内容:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. E