【发布时间】:2016-04-14 14:20:34
【问题描述】:
在我的服务器上重新启动 httpd 服务时遇到问题。
当我尝试service httpd restart 时,它会给我一个错误:
root@server1 [/usr/src]# service httpd restart
AH00548: NameVirtualHost has no effect and will be removed in the next release /usr/local/apache/conf/httpd.conf:455
我真的不明白当我尝试重新启动 httpd 服务时出现什么错误。
你能告诉我我必须做些什么来纠正这个问题吗?
PS 我需要在 httpd.conf 中正确设置设置,因为我需要重写规则才能正常工作,因为当我尝试使用 RewriteCond %{HTTP_HOST} ^google 时它不起作用,因为它不会做任何事情来掩盖我的域名域名。
【问题讨论】:
标签: apache httpd.conf