我在亚马逊AWS上有一个远程ubuntu服务器,而且我正在启用一个使用a2ensite的站点。 我有一个conf文件在我的/etc/apache2/sites-available/001-mysite.conf我的服务器名称和服务器别名是这样摆放的
ServerName 4techgroups.com #Works ServerAlias www.4techgroups.com #Doesn't work http://4techgroups.com #works <Directory /var/www/html/site1> AllowOverride All </Directory>
我不知道为什么我在4techgroups.com工作时无法访问www.4techgroups.com。 难道是因为它是一个亚马逊AWS服务器。
您的域4techgroups.com尚未获得有关主机www DNSlogging。 只需将它添加到您的域名与4techgroups.com具有相同的IP地址。 阅读更新VPC的DNS支持文档