Following the instructions in How to change Public DNS in amazon ec2, I could change public DNS in amazon ec2 (ubuntu image).
What I need to do is to add CName (alias) so that wiki.XYZ.com
points to /var/www/html/wiki
.
I use godaddy for DNS Zone file, so I added the name wiki
, and check ping wiki.XYZ.com
works fine.
I also modified the /etc/apache2/apache2.conf, and restarted apache server with service apache2 restart
.
<VirtualHost *>
DocumentRoot "/var/www/html/wiki"
ServerName wiki.XYZ.com
# Other directives here
<Directory "/var/www/html/wiki">
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
However, wiki.XYZ.com
ends up in error (not page found) in my browser. What might be wrong?