Friday, March 7, 2014

edX-platform - To run the CMS at port 80 along side with the LMS

By default, the CMS of the edX production stack will run at port 18010 which may be blocked by corporate's network. To make it run at port 80 and can be accessible via the url studio.your.domain, you only need to change the nginx server block of the CMS at /edx/app/nginx/sites-available/cms:

upstream cms-backend {
            server fail_timeout=0;

server {
  # CMS configuration file for nginx, templated by ansible

    listen 80 ;

  server_name ~^((stage|prod)-)?studio\..*;

Then, restart the nginx service:

$ sudo service nginx restart