Hi all,
I installed Moodle 2.5 in a CentOS 6.4 server and have a reverse proxy in another CentOS box server.
The version I have is Moodle 2.5+ (Build: 20130530)
My config.php is this one:
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = 'mypassword';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbsocket' => 1,
);
$CFG->reverseproxy = 'true';
$CFG->wwwroot = 'http://mod.mydomain.com';
$CFG->dataroot = '/var/www/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
require_once(dirname(__FILE__) . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
In my CentOS reverse proxy box I have my httpd.conf this
<VirtualHost *:80>
ServerName mod.mydomain.com
ServerAdmin webmaster@mydomain.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
RewriteEngine on
ProxyRequests Off
ProxyPass / http://moodle.mydomain.com/
ProxyPassReverse / http://moodle.mydomain.com/
SetEnv proxy-nokeepalive 1
ErrorLog /var/log/httpd/moodle-error.log
CustomLog /var/log/httpd/moodle-access.log combined
</VirtualHost>
If I'm connected on local network (10.0.2.21 - moodle box) I'm able to use file upload picker.
When I'm not connected on local network, the box of file upload picker stays loading, loading and loading and does not work.