mardi 26 mai 2015

Enable www in subdomain in Amazon AWS EC2 Server

I have some problems when I want to add www in subdomain. Because subdomain.domain.org works fine but http://ift.tt/1LaTMYb.

I connected to my AWS Instance I go to Route53->Hosted zones-->Add Records Set.

Example:

domainname.org. A ALIAS www.domainname.org.

domainname.org. NS

domainname.org. SOA

subdomain.domain.org. A ALIAS http://ift.tt/1x6G1De.

http://ift.tt/1x6G1De. A MyElasticIP

www.domainname.org. A MyElasticIP

Then in my /etc/apache2/sites-available/httpd.conf I have inserted virtualhosts

<VirtualHost *:80>
   ServerName domainname.org
   ServerAlias www.domainname.org
</VirtualHost>
<VirtualHost *:80>
   ServerName http://ift.tt/1x6G1De
   ServerAlias subdomain.domainname.org
</VirtualHost>

I don't know what I am doing wrong here, please I need some help. Thank you in advance!




Aucun commentaire:

Enregistrer un commentaire