I am using apache2 with mod_proxy on our gateway. Moodle is installed on the server, which has local IP, behind this gateway.
It's accessible via http://moodle.acts.kiev.ua/ and https://moodle.acts.kiev.ua:8443/, but mod_proxy always uses HTTP for these both addresses.
config.php file contains the last URL (but before the url was http://192.168.34.2/moodle, I changed it).
Now I am having some problems, e.g. when I create a topic on the forum, it redirects me to:
http://moodle.acts.kiev.ua:8443/moodle/mod/forum/view.php?f=3
Please note that 8443 is used for HTTPS, not HTTP.
Also, when Moodle tells me that my message was added to the forum, the page contains the following:
......
<body class="http:--moodle.acts.kiev.ua:8443-moodle-mod-forum course-1" id="http:--moodle.acts.kiev.ua:8443-moodle-mod-forum-post">
......
Also, when I tried to edit a test inside my course, I received a blank page from server. The following message appeared in httpd-error.log:
[Fri Mar 03 00:35:46 2006] [error] [client 192.168.34.1] PHP Fatal error: Cannot instantiate non-existent class: in /usr/local/www/data-dist/moodle/lib/pagelib.php on line 67, referer: https://moodle.acts.kiev.ua:8443/course/view.php?id=2&edit=on
I went to pagelib.php and saw that the function page_map_class was called with $type="http:--moodle.acts.kiev.ua:8443-moodle-mod-quiz-display" or something like that.
Then I inserted a following line there (stop laughing)
$type = ereg_replace("http:--moodle.acts.kiev.ua:8443-moodle-", "", $type);
the problem has gone away... But some problems seem to stay (as far as i feel, they are because of mod_proxy).
So my questions are:
1. How do I gracefully change the URL moodle installed at?
2. Is it neccessary to reinstall moodle after all I've done to it?