| Linode Forum https://forum.linode.com/ |
|
| Resolving to IP, not Domain Name https://forum.linode.com/viewtopic.php?f=19&t=11278 |
Page 1 of 1 |
| Author: | pcnweb [ Tue Sep 02, 2014 3:08 pm ] |
| Post subject: | 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/ <VirtualHost 50.116.**.***:80> # 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 </VirtualHost> <VirtualHost 50.116.**.***:443> 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 </VirtualHost> What did I mess up here? |
|
| Author: | pcnweb [ Tue Sep 02, 2014 5:24 pm ] |
| Post subject: | Re: Resolving to IP, not Domain Name |
Any ideas? This is really screwing things up, SSL cert won't validate, site warnings etc... |
|
| Author: | pcnweb [ Tue Sep 02, 2014 5:40 pm ] |
| Post subject: | Re: Resolving to IP, not Domain Name [SOLVED] |
I am an idiot, there is a commercial shopping cart software installed that was redirecting to the IP address used during setup/testing/etc. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|