Site from two IP adresses

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Site from two IP adresses

Post by Dee »

Have you tried setting relative paths for the url settings in your config ($config['*_url'])?
You could try using $_SERVER['HTTP_HOST'] like this:

Code: Select all

$config['root_url'] = 'http://' . $_SERVER['HTTP_HOST'] . '/cms';
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Site from two IP adresses

Post by Ted »

Actually, you should be able to just take out the http://servername part and just make all the paths absolute without the server name.  I've done this several times and it works fine.
Locked

Return to “[locked] Installation, Setup and Upgrade”