Apache 服务绑定域名的方法

错写一下错误:
dom

ServerName takes one argument, The hostname and port of the serveride

解决方法:将ServerName修改成ServerAlias 。server

NameVirtualHost *:80
<VirtualHost *:80>
  ServerAlias www.domain.com domain.com
  DocumentRoot "/var/www/domain.com"
</VirtualHost>get

相关文章
相关标签/搜索