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

相關文章
相關標籤/搜索