Edx on the same server with different domains for LMS and CMS?

527 views
Skip to first unread message

Zhou Shijun

unread,
Aug 12, 2014, 11:23:59 PM8/12/14
to edx-...@googlegroups.com
Hello,

I installed edx on a single server on AWS using the production stack solution provided on Github. Now I have edx.example.com as LMS and edx.example.com:18010 as CMS. I wonder if it is possible to have studio.example.com (port 80) as CMS, while keep edx.example.com no change as LMS? Still use a single server.

Anyway to do that?

Many thanks,
Bob

Marceau C.

unread,
Aug 13, 2014, 8:54:23 AM8/13/14
to edx-...@googlegroups.com
Nginx config files are located in /edx/app/nginx/sites-available/[lms|cms]

Should update the lms and cms configs to tell them to both listen to port 80 and given server names, like it is explained here:
http://stackoverflow.com/questions/11773544/nginx-different-domains-on-same-ip

Marceau

Zhou Shijun

unread,
Aug 13, 2014, 10:24:34 PM8/13/14
to edx-...@googlegroups.com
Thanks Marceau.
In the file I found "CMS configuration file for nginx, templated by ansible", does it mean the settings will be updated when I update to a newer version of Edx? Do you know where is the configuration of the template in ansible that I can keep for my local settings regardless of the update?
--

Live in the future, then build what’s missing.

Marceau C.

unread,
Aug 14, 2014, 5:23:53 AM8/14/14
to edx-...@googlegroups.com
You can begin to try if it works by changing the files. I never changed this so I am just trying to help.

Once you found how to do it, you can then update server-vars.yml with the values you need.

I found those templates in the nginx role of the configuration playbook :
https://github.com/edx/configuration/blob/master/playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2
https://github.com/edx/configuration/blob/master/playbooks/roles/nginx/templates/edx/app/nginx/sites-available/cms.j2

It seems that the variables you are looking for are:
CMS_HOSTNAME
and
EDXAPP_CMS_NGINX_PORT
and
EDXAPP_LMS_NGINX_PORT

There seem to be no "LMS_HOSTNAME" though.

Marceau

Cristóbal Acosta

unread,
Apr 2, 2015, 5:23:54 PM4/2/15
to edx-...@googlegroups.com
And do this actually changes the template for cms site-avaibles? because I run an update and nothing happend, the cms file in site-avaibles is still the same. what do i miss???
Reply all
Reply to author
Forward
0 new messages