电脑里做ppt下载 | 电脑下载什么做
646 2023-04-02 02:39:49
4个VirtualHost条目适用于2个独立站点:test.example.com和test2.example.com,每个站点一个用于HTTP,一个用于HTTPS.
<VirtualHost *:443> DocumentRoot /var/www/test ServerName test.example.com # Other settings goes here</VirtualHost><VirtualHost *:80> DocumentRoot /var/www/test ServerName test.example.com # Other settings goes here</VirtualHost><VirtualHost *:443> DocumentRoot /var/www/test2 ServerName test2.example.com # Other settings goes here</VirtualHost><VirtualHost *:80> DocumentRoot /var/www/test2 ServerName test2.example.com # Other settings goes here</VirtualHost>
* Restarting web server apache2[Sun Feb 17 18:30:09 2013] [warn] _default_ VirtualHost overlap on port 443, the first has precedence ... waiting [Sun Feb 17 18:30:10 2013] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
当我打开test.example.com和test2.example.com时,我得到了/ var / www / test的内容
知道问题是什么吗?
您需要添加NameVirtualHost *:443才能工作.另外一条忠告:在单个IP上运行多个HTTPS站点可能有它的缺点,特别是旧客户端(IE8 / Windows XP)不支持SNI.它可能在您的情况下非常有意义(仅用于测试,* .example.com正在使用通配符证书等),但您应该知道这一点.