Admin Panel with multiple IP addresses

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Admin Panel with multiple IP addresses

Post by Ted »

I haven't tested it, but try something like:

Code: Select all

$config['root_url'] = 'http://' . $_SERVER['SERVER_NAME'];
$config['admin_dir'] = 'admin';
That SHOULD just grab whatever hostname was given to apache, give you a full valid url, and make the base tag work properly in IE.

Ted
Post Reply

Return to “CMSMS Core”