How do I resolve this issue? How do I add the www.examplesite.com to the site-enabled (nginx) and the configure it for the SSL Certificate? I have a feeling that the “www” prefix is being redirected to studio.examplesite.com due to that fact that the “www.examplesite.com” is not URLs enabled for SSL but please help me resolve this issue because most people that visit a website will type “www”
Hi @iwebhost4u! This is a great question. Out of the box there is no simple solution to redirect certain subdomains to the lms. But it’s possible with a small amount of hacking. First, you will have to add a custom nginx configuration file to the env/apps/nginx folder. Then you will have to generate the ssl certificate for the www subdomain from the host manually and restart the nginx service.
I’m writing this from my phone and will only be able to give more precise instructions once I get to a computer. Is that enough to get you started?
Thanks for the help, Regis! I tried the steps and I got the following error in step 2:
docker: Error response from daemon: driver failed programming external connectivity on endpoint distracted_antonelli (93678a02be5a290e439844a0b0760fa53a774c2faefd1f92b547f676b25f3076): Bind for 0.0.0.0:80 failed: port is already allocated.
ERRO[0000] error waiting for container: context canceled