I have tutor lilac installation and I need to create 3 additional sites (mictosites) on the LMS,I used to do that on native installation following Configuring Open edX Sites from the official documentation.
I have followed the same steps for tutor but it didn’t work, is there any additional step for tutor as the documentation worked for the native installation before.
Hi @harout7, have you updated your caddy file with microsites-domain?
Hi @kiran_chauhan yes I have updated Caddyfile in:
.local/share/tutor/env/apps/caddy
After the update the file looks like this:
lms.mydomain.com {
reverse_proxy nginx:80 {
header_up X-Forwarded-Port 443
}
}
microsite.mydomain.com {
reverse_proxy nginx:80
preview.mydomain.com {
reverse_proxy nginx:80
}
studio.mydomain.com {
reverse_proxy nginx:80
}
After that I have ran tutor local quickstart and still couldn’t access the microsite and when I have checked back the Caddyfile the microsite domain wasn’t there.
Any additional command should I run after updating the Caddyfile other than quickstart ?
@harout7 instead of tutor local quickstart , try with tutor local stop and tutor local start
And hope you are already configured the theme at here yourdomain/admin/theming/sitetheme/
@kiran_chauhan I have configured the theme in django admin and also did tutor local quickstart and then tutor local start it didn’t work.
Is there something I need to do in order to enable SSL for the microsite domain ? or just adding the domain in Caddyfile will handle the SSL as well ? I also added the microsite domain in ngnix/lms.conf file.
@kiran_chauhan I managed to enable SSL certificate for the microsites hosts but when trying to open it via browser I am getting:
Bad Request (400)
Steps to create Open edx sites (microsties) in tutor:
- Create an Open edX Site
- Configure the Site
- Enable SSL certificate for the new created site by editing
Caddyfilein caddy app - Add the new created site to
lms.conffile in nginx app - Add the new site to
ALLOWED_HOSTSinapps/openedx/settings/lms/production.py - run
tutor local stop - run
tutor local start -d
The above could be done by a plugin which was mentioned in many forum posts but didn’t find one to use.