Set domain to the VPS

Posted April 5, 2014 2.8k views
I am trying to migrate the wordpress blog to VPS. Right now it about to access with the IP address but with the domain name it display error as "This webpage has a redirect loop" I have add Virtual host follow this article But I also add the domain in the DNS session as I want to set the google mail mx record. Below this is an Zone file $TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. ( 1396671182 ; last update: 2014-04-05 04:13:02 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. MX 1 ASPMX.L.GOOGLE.COM. MX 5 ALT1.ASPMX.L.GOOGLE.COM. MX 5 ALT2.ASPMX.L.GOOGLE.COM. MX 10 ASPMX2.GOOGLEMAIL.COM. MX 10 ASPMX3.GOOGLEMAIL.COM. @ IN A

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
Done, I fixed this by remove below from VirtualHost

Redirect permanent /