我有一个标准版本的 RHEL6,我曾经能够DocumentRoot
使用 IP 地址浏览到服务器。
我已经添加了这两个虚拟主机(只显示了顶部)。出于某种原因,现在当我访问服务器的 IP 地址时,Vhost 回答并且使用了错误DocumentRoot
。
我真的不想为/var/www/html
.
另一个注意事项...我已添加NameVirtualHost *:80
到httpd.conf
.
任何想法为什么虚拟主机回答这个?
==> axxx-http.conf <==
<VirtualHost *:80>
ServerAdmin beren@xxyy.com
ServerName xxyy.com
ServerAlias www.xxyy.com
DocumentRoot /var/www/site
<Directory /var/www/site>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
==> axxx-ssl.conf <==
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName xxyy.com
ServerAlias www.xxyy.com
ServerAlias admin.xxyy.com
DocumentRoot /var/www/site
<Directory /var/www/site>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Run Code Online (Sandbox Code Playgroud)