Reverse proxy and Joomdle, how to?

  • Mircea
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 9 months ago - 11 years 9 months ago #1 by Mircea
Reverse proxy and Joomdle, how to? was created by Mircea
Hello,

We want to use Joomla and Moodle behind a reverse proxy for security reasons. I would like to ask what URL should i write in configuration file for Joomdle and Moodle? I tried to add in Joomdle a URL like portal-pet.mydomain.com/joomla/moodle and in Moodle i've added the url portal-pet.mydomain.com/joomla . Unfortunately, it doesn't work, Moodle cannot connect to Joomal and viceversa, "Receive empty response".

"System Check" will show everything ok if instead of public url, i use local url, like mylocalhostname/joomla. But in this case, all the links from Moodle will have the URL starting with mylocalhostname instead of public url, which is not ok, the users doesn't have acces to the internal network.

Joomla 2.5.4, Joomdle R.0.95, Moodle 1.9 (also tested with Moodle 2.7)

Thank you
Last edit: 11 years 9 months ago by Mircea.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Reverse proxy and Joomdle, how to?
How are HTTP connection checks in joomdle when using portal-pet configuration?
Maybe there is some problem for the server to connect to itslef through the proxy.

Please Log in or Create an account to join the conversation.

  • Mircea
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 9 months ago - 11 years 9 months ago #3 by Mircea
Replied by Mircea on topic Reverse proxy and Joomdle, how to?
Thank you, Antonio, I managed the problem with the URL, but now i found that i need to add 2 IP as Internal IP in Joomdle configuration, because we have two IP that send requests..can you tell me how can i do this? I tried 1.2.3.0/29 but it doesn't work..

Also (this might be a out of Joomdle area): do you know what $CFG->wwwroot URL should i add in Moodle? I tried the public URL but it doesn't work, i get the message "Incorect address" and moodle try to redirect me to the local URL..

Thank you
Last edit: 11 years 9 months ago by Mircea.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #4 by Chris
Replied by Chris on topic Reverse proxy and Joomdle, how to?
You will not be able to add 2 IP addresses. Are you suggesting that Moodle or Joomla is on 2 IP or that you have multiple Moodle or multiple Joomla installations / domains?

Please Log in or Create an account to join the conversation.

  • Mircea
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 9 months ago #5 by Mircea
Replied by Mircea on topic Reverse proxy and Joomdle, how to?
Single Joomla/Moodle installation. The load balancing system for the reverse proxy use two servers, each one having it's own static IP.

Btw, for the second question, i found that in Moodle 2.7 i had to add $cfg->reverseproxy = true; in config.php and use the public URL in order to make it work.

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Reverse proxy and Joomdle, how to?
Thanks for the info about the reverse proxy.

As for the 2 IPs: I have been wanting to change how this work for a while, to remove these problems. Instead of using IP for verification we should use a token, like Moodle does on its side.
I will try to change that for next release.

In the meantime, you will need to modify Joomdle code to allow net masks to be used. Code is located in check_origin function, at /components/com_joomdle/controllers/ws.xmlrpc.php

Please Log in or Create an account to join the conversation.