Config import now test server redirects to prod
Config import now test server redirects to prod
I was performing some testing and needed some live data so I had exported and imported the information from our production Nagios XI 5.3.0 server to our test server. Now when ever you key in the IP address or the DNS name for our test instance I am presented with the production site. I was wondering where the site URL is located so I can try and change it back to the test site within the config file.
Re: Config import now test server redirects to prod
Are you using SSL? I wonder if it's hardcoded to redirect to the IP / hostname here. Take a look at /etc/httpd/conf.d/ and see if you can find it in there. A grep -R 'ip or hostname of your old server' /etc/httpd/conf.d/ should help as well.
If that doesn't work, I would try to run the recursive grep against your whole filesystem and see if that helps pinpoint which file contains the redirection data.
If that doesn't work, I would try to run the recursive grep against your whole filesystem and see if that helps pinpoint which file contains the redirection data.
Former Nagios Employee
Re: Config import now test server redirects to prod
I think you mean you want to change the program URL? It's under Admin > System Setting..... the General Tab.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: Config import now test server redirects to prod
No, I didn't need to change the program URL as I couldn't get to the site. I was always being redirected. The solution rkennedy provided did the trick.
Thanks and you can close this at your convenience.
Thanks and you can close this at your convenience.
Re: Config import now test server redirects to prod
Aah, I see. Thanks for the update and I'll lock this thread now.
Be sure to check out the Knowledgebase for helpful articles and solutions!