Resolving to IP, not Domain Name

I think I made a conf mistake, but spacing out on how to fix…

Inherited site originally hosted at GoDaddy, used their control panel to point at ns1-5.linode.com and changed A record there to point at Linode IP address.

Used the Linode DNS Manager to make the default records for the domain, everything looks right.

Going to mydomain.com redirects successfully, but switches to the Linode IP address instead of mydomain.com

My /etc/hosts (IP obscured)

127.0.0.1 mydomain.com localhost localhost.localdomain myhostname

50.116..* mydomain.com myhostname

The following lines are desirable for IPv6 capable hosts

::1 mydomain.com localhost ip6-localhost ip6-loopback

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

My mydomain.com.conf

domain: mydomain.com

public: /home/public/mydomain.com/

# Admin email, Server Name (domain name), and any aliases

ServerAdmin ***

ServerName mydomain.com

ServerAlias www.mydomain.com

Index file and Document Root (where the public files are located)

DirectoryIndex index.html index.php

DocumentRoot /home/public/mydomain.com/public

Log file locations

LogLevel warn

ErrorLog /home/public/mydomain.com/log/error.log

CustomLog /home/public/mydomain.com/log/access.log combined

SSLEngine On

SSLCertificateFile /etc/ssl/localcerts/apache.pem

SSLCertificateKeyFile /etc/ssl/localcerts/apache.key

ServerAdmin ***

ServerName mydomain.com

DocumentRoot /home/public/mydomain.com/public

ErrorLog /home/public/mydomain.com/log/error.log

CustomLog /home/public/mydomain.com/log/access.log combined

What did I mess up here?

2 Replies

Any ideas? This is really screwing things up, SSL cert won't validate, site warnings etc…

I am an idiot, there is a commercial shopping cart software installed that was redirecting to the IP address used during setup/testing/etc.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct