AWS Route 53 to redirect existing domain name to EC2 IP address

308 views Asked by At

My website is running in AWS EC2, I want to redirect my dns name to public ip of ec2 server. How to configure this?

1

There are 1 answers

0
niteshd22 On BEST ANSWER

Edit httpd.conf file with following code.

<VirtualHost *:80>
ServerName domainname.com
DocumentRoot /var/www/html/awsec2
</VirtualHost>

Uncomment NameVirtualHost *:80

Restart Apache