I have a remote ubuntu server on Amazon AWS, and I am enabling a site using a2ensite
. I have a conf file in my /etc/apache2/sites-available/001-mysite.conf
My servername and server alias is laid out like this
ServerName 4techgroups.com #Works
ServerAlias www.4techgroups.com #Doesn't work http://4techgroups.com #works
<Directory /var/www/html/site1>
AllowOverride All
</Directory>
I don't know why I can't access www.4techgroups.com while 4techgroups.com works. Could it be because it is a amazon AWS server.