I have Moodle set up on a server in my office.
If I set up $CFG->wwwroot using my url, it works fine when I access remotely via the internet, but I can't connect when I'm in the office.
If I set up $CFG->wwwroot using "localhost", it works fine when I'm in the office, but I can't connect remotely via the internet.
Currently I have two copies of config in separate directories and copy the "localhost" indo my moodle directly when I need to work on the site. Still developing content so at this point this isn't a problem but need a long term fix?
Thanks in Advance for any advice!