Apache URL无法正确指向
我的名字有问题。我正在基于CentOS的操作系统中设置vhost。在主机文件中,我添加了2个vhost URL。我还编辑了httpd.conf文件。我添加了vhost目录。我重新启动了httpd,并在浏览器中打开了URL。但它没有进入我的页面。它重定向到另一个页面。询问主机名。这是我的设置 在我的httpd.conf中,我有以下内容:Apache URL无法正确指向,apache,centos,vhosts,Apache,Centos,Vhosts,我的名字有问题。我正在基于CentOS的操作系统中设置vhost。在主机文件中,我添加了2个vhost URL。我还编辑了httpd.conf文件。我添加了vhost目录。我重新启动了httpd,并在浏览器中打开了URL。但它没有进入我的页面。它重定向到另一个页面。询问主机名。这是我的设置 在我的httpd.conf中,我有以下内容: <VirtualHost *:80> DocumentRoot /data/APACHE/html/metro ServerName
<VirtualHost *:80>
DocumentRoot /data/APACHE/html/metro
ServerName store6.giftregistry.com.ph
ServerAlias store6.giftregistry.com.ph
<Directory "/data/APACHE/html/metro">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /data/APACHE/html/metro
ServerName store7.giftregistry.com.ph
ServerAlias store7.giftregistry.com.ph
<Directory "/data/APACHE/html/metro">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
10.128.0.63 store6.giftregistry.com.ph
10.128.0.63 store7.giftregistry.com.ph
我的代码有错误吗?添加
NameVirtualHost*:80
在上面
文件: