To create create domain.com, studio.domain.com and preview.domain.com, would you please try this in your server-vars.yml and run update?
---
EDXAPP_SITE_NAME: 'domain.com'
EDXAPP_LMS_SITE_NAME: "{{ EDXAPP_SITE_NAME }}"
EDXAPP_LMS_BASE: "{{ EDXAPP_SITE_NAME }}"
EDXAPP_LMS_NGINX_PORT: 80
EDXAPP_LMS_SSL_NGINX_PORT: 443
EDXAPP_CMS_SITE_NAME: "studio.{{ EDXAPP_SITE_NAME }}"
EDXAPP_CMS_BASE: "{{ EDXAPP_CMS_SITE_NAME }}"
EDXAPP_CMS_NGINX_PORT: 80
EDXAPP_CMS_SSL_NGINX_PORT: 443
EDXAPP_PREVIEW_SITE_NAME: "preview.{{ EDXAPP_SITE_NAME }}"
EDXAPP_PREVIEW_LMS_BASE: "{{ EDXAPP_PREVIEW_SITE_NAME }}"
EDXAPP_LMS_PREVIEW_NGINX_PORT: 80
--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/e795fe30-a200-4e38-a309-b88b28b00d84%40googlegroups.com.
upstream cms-backend {
server 127.0.0.1:8010 fail_timeout=0;
}
server {
# CMS configuration file for nginx, templated by ansible
listen 80 ;
server_name ~^((stage|prod)-)?studio.*;
I just re-confirmed with a successful ansible play on a brand new ubuntu precise box and find that my instructions I provided earlier worked for the following:
cd /var/tmp/configuration/playbooks/
ansible-playbook edx_sandbox.yml -c local -i 'localhost,' -...@mycustomserver-vars.yml
Look at /etc/nginx/sites-enabled/
total 8
drwxr-xr-x 2 root www-data 4096 Mar 15 21:12 .
drwxr-xr-x 5 root root 4096 Mar 15 21:12 ..
lrwxrwxrwx 1 root root 36 Mar 15 21:12 certs -> /edx/app/nginx/sites-available/certs
lrwxrwxrwx 1 root root 34 Mar 15 21:12 cms -> /edx/app/nginx/sites-available/cms
lrwxrwxrwx 1 root root 42 Mar 15 21:12 edx-release -> /edx/app/nginx/sites-available/edx-release
lrwxrwxrwx 1 root root 36 Mar 15 21:12 forum -> /edx/app/nginx/sites-available/forum
lrwxrwxrwx 1 root root 34 Mar 15 21:12 lms -> /edx/app/nginx/sites-available/lms
lrwxrwxrwx 1 root root 34 Mar 15 21:12 ora -> /edx/app/nginx/sites-available/ora
lrwxrwxrwx 1 root root 37 Mar 15 21:12 xqueue -> /edx/app/nginx/sites-available/xqueue
After a successful ansible play, you should note both lms and cms should contain this block
listen 80 ;
listen 443 ssl;
Earlier, I missed one line that takes care of SSL for https://preview.domain.com so I added that in here.
---
EDXAPP_SITE_NAME: 'domain.com'
EDXAPP_LMS_SITE_NAME: "{{ EDXAPP_SITE_NAME }}"
EDXAPP_LMS_BASE: "{{ EDXAPP_SITE_NAME }}"
EDXAPP_LMS_NGINX_PORT: 80
EDXAPP_LMS_SSL_NGINX_PORT: 443
EDXAPP_CMS_SITE_NAME: "studio.{{ EDXAPP_SITE_NAME }}"
EDXAPP_CMS_BASE: "{{ EDXAPP_CMS_SITE_NAME }}"
EDXAPP_CMS_NGINX_PORT: 80
EDXAPP_CMS_SSL_NGINX_PORT: 443
EDXAPP_PREVIEW_SITE_NAME: "preview.{{ EDXAPP_SITE_NAME }}"
EDXAPP_PREVIEW_LMS_BASE: "{{ EDXAPP_PREVIEW_SITE_NAME }}"
EDXAPP_LMS_PREVIEW_NGINX_PORT: 80
EDXAPP_LMS_PREVIEW_SSL_NGINX_PORT: 443
Indeed
domain.com
studio.domain.com
preview.domain.com
all A records need to point to that open edx box you set upᐧ
--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/1acef59e-ae7c-41a9-b2ce-e35b8a0f6917%40googlegroups.com.
These work fine with latest but won’t when I stick to named-release/birch.
edx_platform_version: 'named-release/birch'
ora2_version: 'named-release/birch'
certs_version: 'named-release/birch'
forum_version: 'named-release/birch'
xqueue_version: 'named-release/birch'
configuration_version: 'named-release/birch'
Does any one know what fixes it in later releases?
...