Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Sep 02, 2014 3:08 pm 
Offline
Senior Newbie

Joined: Tue Sep 02, 2014 2:56 pm
Posts: 7
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?


Top
   
PostPosted: Tue Sep 02, 2014 5:24 pm 
Offline
Senior Newbie

Joined: Tue Sep 02, 2014 2:56 pm
Posts: 7
Any ideas? This is really screwing things up, SSL cert won't validate, site warnings etc...


Top
   
PostPosted: Tue Sep 02, 2014 5:40 pm 
Offline
Senior Newbie

Joined: Tue Sep 02, 2014 2:56 pm
Posts: 7
I am an idiot, there is a commercial shopping cart software installed that was redirecting to the IP address used during setup/testing/etc.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group