# How to set Koa LMS and CMS url

**URL:** <https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148>\
**Category:** Site Operations Help\
**Tags:** how-to\
**Created:** [January 28, 2021, 3:06pm UTC](https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148 "2021-01-28T15:06:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitin\_Vaishwade](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nitin_vaishwade/32/1342_2.png) [@Nitin\_Vaishwade](https://discuss.openedx.org/u/Nitin_Vaishwade)\
**Post date:** [January 28, 2021, 3:06pm UTC](https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148/1 "2021-01-28T15:06:39Z")

</div>

Trying to setup the URL for LMS and CMS. in lms.yml and studio.yml but it’s not working. can anyone know how to setup the URL in the new release KOA version openedx.

---

<div class="post-metadata">

**Author:** ![ARMBouhali](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/armbouhali/32/324_2.png) [@ARMBouhali](https://discuss.openedx.org/u/ARMBouhali)\
**Post date:** [January 28, 2021, 4:41pm UTC](https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148/2 "2021-01-28T16:41:58Z")

</div>

Can you tell us what you did in details so we may figure out what’s wrong ?

Regards

---

<div class="post-metadata">

**Author:** ![Nitin\_Vaishwade](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nitin_vaishwade/32/1342_2.png) [@Nitin\_Vaishwade](https://discuss.openedx.org/u/Nitin_Vaishwade)\
**Post date:** [January 29, 2021, 6:19am UTC](https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148/3 "2021-01-29T06:19:32Z")

</div>

thanks for reply @ARMBouhali .

in LMS.yml  
CMS\_BASE: studio.mydomain  
LMS\_BASE: mydomain  
LMS\_INTERNAL\_ROOT\_URL: [http://mydomain](http://mydomain) LMS\_ROOT\_URL: [http://mydomain](http://mydomain)  
CROSS\_DOMAIN\_CSRF\_COOKIE\_DOMAIN: mydomain  
DEFAULT\_JWT\_ISSUER:  
ISSUER: [http://mydomain/oauth2](http://mydomain/oauth2)  
ENTERPRISE\_API\_URL: [http://mydomain/enterprise/api/v1](http://mydomain/enterprise/api/v1)

LOGIN\_REDIRECT\_WHITELIST: - mydomain

- studio.mydomain

ENTERPRISE\_ENROLLMENT\_API\_URL: [http://mydomain/api/enrollment/v1/](http://mydomain/api/enrollment/v1/)

FEATURES:  
PREVIEW\_LMS\_BASE: preview.mydomain

JWT\_ISSUER: [http://mydomain/oauth2](http://mydomain/oauth2)

studio.yml

CMS\_BASE: studio.mydomain  
CROSS\_DOMAIN\_CSRF\_COOKIE\_DOMAIN: mydomain

and set sites as mydoiman in admin site

this think i did. there anything i’m missing. please let me know.

---

<div class="post-metadata">

**Author:** ![ARMBouhali](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/armbouhali/32/324_2.png) [@ARMBouhali](https://discuss.openedx.org/u/ARMBouhali)\
**Post date:** [January 30, 2021, 11:33am UTC](https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148/4 "2021-01-30T11:33:51Z")

</div>

Still got questions

1. Are you using devstack (docker) or the native (production) installation.
2. Do you expect lms to be accessible at `mydomain` and studio at `studio.mydomain`

---

<div class="post-metadata">

**Author:** ![Nitin\_Vaishwade](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nitin_vaishwade/32/1342_2.png) [@Nitin\_Vaishwade](https://discuss.openedx.org/u/Nitin_Vaishwade)\
**Post date:** [January 30, 2021, 2:40pm UTC](https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148/5 "2021-01-30T14:40:24Z")

</div>

@ARMBouhali . Using native installation

And yes I want mydomain use as lms and studio.mydomain as studio.

---

<div class="post-metadata">

**Author:** ![ARMBouhali](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/armbouhali/32/324_2.png) [@ARMBouhali](https://discuss.openedx.org/u/ARMBouhali)\
**Post date:** [January 30, 2021, 2:46pm UTC](https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148/6 "2021-01-30T14:46:42Z")

</div>

By default you don’t need to specify LMS\_BASE to access it from any domain, as long as your server is accessible.

Check your services are all running using the command:

```
/edx/bin/supervisorctl status

```

It’s possible your services are not running for some reason.

If you have no clue what’s happening. then I recommend you to do a clean setup on a clean system (reinstall ubuntu 20.04), but this time, specify the right domains in `config.yml`:

[https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/1969455764/Koa+Native+Open+edX+platform+Ubuntu+20.04+64+bit+Installation](https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/1969455764/Koa+Native+Open+edX+platform+Ubuntu+20.04+64+bit+Installation)

---

<div class="post-metadata">

**Author:** ![Nitin\_Vaishwade](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/nitin_vaishwade/32/1342_2.png) [@Nitin\_Vaishwade](https://discuss.openedx.org/u/Nitin_Vaishwade)\
**Post date:** [February 1, 2021, 1:56pm UTC](https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148/7 "2021-02-01T13:56:37Z")

</div>

> [@ARMBouhali](#):
>
> `/edx/bin/supervisorctl status`

I can able to access by localhost, try to access by what defines in config.yml but not able to access. if there any possibility I can set the domain name without reinstalling it.

---

<div class="post-metadata">

**Author:** ![ARMBouhali](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/armbouhali/32/324_2.png) [@ARMBouhali](https://discuss.openedx.org/u/ARMBouhali)\
**Post date:** [February 1, 2021, 4:36pm UTC](https://discuss.openedx.org/t/how-to-set-koa-lms-and-cms-url/4148/8 "2021-02-01T16:36:32Z")

</div>

We don’t have enough information to determine the cause of the problem.  
Normally, a successful native install will allow you to access LMS on port 80 from any available ip address / domain name.  
If you still want to avoid reinstall, then check the logs of your services at `edx/var/log/{lms,cms}/edx.log` or check live logs by typing the command:

```
/edx/bin/supervisorctl fg lms # or cms.

```

Any error preventing startup should appear.  
I’d however recommend a reinstall since it has consistent results with no human intervention
