• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

2 IP addresses/NS pointing to one domain? Please help!

N

nul7

Guest
Ok, so here's the story:

I have a dedicated server running Fedora Core 5 with Plesk 8.1.1. I transferred my site to the new server, tested, everything was working. I left a placeholder on my old server to show that the domain hasn't propagated yet. Now, I needed to set up nameservers so I used GoDaddy's service to do so. At first, I only had one IP address, so I made an NS1 entry for that and left the NS2 for the old server for the time being. Once the new NS1 became active my site worked fine. I purchased another IP for my server and created an NS2 to point to that.

That must have propagated over night because now whenever I type in my domain and it gets grabbed by the second NS pointing to the secondary IP, I get the default Plesk page. I tried editing the httpd.include file for my domain to add the other IP, but while the site shows up, it's unusable. It's a vBulletin based site, and no images or css are working properly. so it's just a bunch of text randomly on the page.

So my question is, how do I make the second nameserver/IP work the same way as the primary? This is (and always will be) the only site running on the server.

I tried searching here, but "IP" is too short so it won't include it in the search. I found quite a few people asking the same question, but there were absolutely no responses.
 
Did you update the NS2 record in godaddy to point to the new IP number?

If so then it sounds as though your provider doesn't have the second IP configured right for your server somehow.

HTH
 
Thanks for the response. I figured out what the problem is. When I edited the .include file to include the new IP the site was coming up all screwy. I thought it was just for that IP, so I took it back out to display the "Default Server Page" again. Well, someone just IMed me saying the site is all screwed up. I asked them to ping it and tell me what IP they were getting. They were getting the first IP. At that point, I knew it was a site problem instead and went to go re-edit the .include file to add the new IP again. While doing this, I noticed that something was amiss.

I use subdomains pointing to directories within the primary domain so I had to edit the httpd.include to reflect this. Most images, css, links, etc are made using the subdomain. So I added the new IP address and re-did the subdomain customizations and the site works on both IPs!

So now my new question is... how do I keep Plesk from overwriting this file?

EDIT: If I just copy everything in the .include file and paste it into httpd.conf, will it work and not get overwritten? Will there be a conflict with the .include file for my domain?
 
And after a bit more searching I see people suggesting to create a "vhost.conf" in the same folder as httpd.include then run "/usr/local/psa/admin/bin/websrvmng -a -v". So, do I just copy the entire httpd.include and paste it into vhost.conf and the changes here will supersede those in the .include?
 
More info...

I tried copying the entire httpd.include to vhost.conf, but it gives me an error when trying to restart Apache:

"<VirtualHost> cannot occur within <VirtualHost>"

*sigh* Now what? lol Do I copy the contents of httpd.include to the main httpd.conf file? Will there be a conflict with the httpd.include if I do so?
 
I think I found a solution to this...

So this is what I did... in /etc/httpd/ I copied the conf.d directory and it's contents and called it conf.e. Then I uploaded my custom httpd.include into this folder and renamed it zz012_custom.conf (since apache reads the files in alphabetical order). In zz010_psa_httpd.conf I removed the include line to the http.include file. Then in /etc/httpd/conf/http.conf I changed the include from conf.d to conf.e. I restarted apache and everything is good. Sure I'll have to edit the files manually if I make any changes, but I had to do so anyway and I will only have 1 domain on this server so it's not really an issue.
 
Back
Top