Two servers. One with moodle 2.8

Two servers. One with moodle 2.8

by José Puente Fuentes -
Number of replies: 2

Hi,

we have a problem with how to config a moodle.

The problem:

There is a server with a wordpress site: www.one.com (first server)

On the other hand one moodle site: moodle.two.com (second server)


We need that exists a moodle.one.com that point at moodle.two.com and url doesn't change for the user...

Is this posible wihout errors?


Thanks in advance

Average of ratings: -
In reply to José Puente Fuentes

Re: Two servers. One with moodle 2.8

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If you are asking - and I think you are - "can Moodle have two different URLs", then the answer is 'no'. Moodle requires that the $CFG->wwwroot setting is fixed. 

You can always set up your web server to rewrite one to the other but once they get to Moodle all subsequent URLs will have the 'correct' wwwroot. 

In reply to José Puente Fuentes

Re: Two servers. One with moodle 2.8

by ryan sanders -

i would say KISS (keep it simply stupid)   trying to complex more issues than needed.  how many websites you know of that displays same thing on two different website address?     amazon, microsoft, google, ebay?  

apache or what ever web server software you are using. it should be simple to setup a "redirect" that will auto redirect person from moodle.one.com to moodle.two.com or vise vs.   yes URL will change. 

================

if you just want one website....

www.one.com = wordpress = server 1   and... moodle.one.com = moodle = server 2... this can be had fairly easily. just requires settings.