Mahoodle - internel network works, external network fails?

Mahoodle - internel network works, external network fails?

Micah Boggs གིས-
Number of replies: 1
I went through the mahoodle pdf and setup my moodle and mahara installations to talk to each other.

When we are inside our district on our private network 10.0.0.0/8 it works without any problems.

However if you are outside our network (such as a student from home), you cannot SSO from moodle to mahara. you get a webpage not available from your browser. If you connect to our network via VPN it will start working. (as you are now on the 10.0.0.0/8 network)

You can go directly to the URL of moodle, and you can go directly to the URL of mahara.


My Setup is as follows.
mahara and moodle are installed on the same box.
Ubuntu 8.04 LAMP

moodle - http://FQDN/moodle - version 1.9.7+
mahara - http://FQDN/mahara - version 1.2.3 (2009111010)

Any ideas?

དཔྱ་སྙོམས་ཀྱི་སྐུགས་ཚུ།: -
In reply to Micah Boggs

Re: Mahoodle - internel network works, external network fails?

Micah Boggs གིས-
Figured it out.

Had nothing to do with the internal / external IP.

It had to do with the WWWRoot on mahara autodetecting as domain.local instead of domain.org because the hostname of the box was domain.local.

So I edited the /var/www/mahara/config.php file and changed
//$cfg->wwwroot = 'http://domain.local/mahara/';
to
$cfg->wwwroot = 'http://domain.org/mahara/';

After that MNET broke due to the SSL key being set to the domain.local, so I had to go into mysql and run the command

UPDATE config
SET value=0
WHERE field='openssl_keypair_expires';

I then went back to the networking page in mahara and it regenerated the SSL key.

From there I went back to moodle and under networking / peers i added the peer using the correct wwwroot. set the services, saved, and deleted the old one.

whew. Thankfully this is a new setup so nobody was using mahara at all.

Hopefully if anybody runs into the same thing as me the above will help them.