# How to setup studio (Self managed)?

**URL:** <https://discuss.openedx.org/t/how-to-setup-studio-self-managed/4017>\
**Category:** Site Operations Help\
**Created:** [January 13, 2021, 11:51am UTC](https://discuss.openedx.org/t/how-to-setup-studio-self-managed/4017 "2021-01-13T11:51:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisbst43](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@chrisbst43](https://discuss.openedx.org/u/chrisbst43)\
**Post date:** [January 13, 2021, 11:51am UTC](https://discuss.openedx.org/t/how-to-setup-studio-self-managed/4017/1 "2021-01-13T11:51:13Z")

</div>

Hello,

I am having issues configuring the CMS part of EDX. I understand that LMS host and Studio host must either be the same hostname (on different ports), or Studio must be a subdomain of the LMS.

I am using JUNIPER 3. I choosed the second option.

Therefore, my config.yml may look like this :  
EDXAPP\_LMS\_BASE: “edx-MYDOMAIN.local”  
EDXAPP\_CMS\_BASE: “studio.edx-MYDOMAIN.local”

I have installed it on a local test platform so basically to resolve my domains, it relies on my hosts file (/etc/hosts).

However, the resolution doesn’t seem to work.  
If I specify the 18010 port in the address bar, it can land on STUDIO /CMS part. But it is not working well. It loops on the studio signin page.

Another go was to comment out the port section in /edx/app/nginx/sites-available/cms, but I got the same result as above. I tried to make a symlink to a potential /edx/app/nginx/sites-enabled/ but no luck, at the begining the sub domain is resolved, and then it loops on the signing page…

Can somebody help please ?

---

<div class="post-metadata">

**Author:** ![mahyard](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/mahyard/32/54_2.png) [@mahyard](https://discuss.openedx.org/u/mahyard)\
**Post date:** [January 13, 2021, 12:07pm UTC](https://discuss.openedx.org/t/how-to-setup-studio-self-managed/4017/2 "2021-01-13T12:07:47Z")

</div>

Try to add these two lines to your config.yml too:

```auto
EDXAPP_LMS_NGINX_PORT: 80
EDXAPP_CMS_NGINX_PORT: 80

```

and reinstall or use `/edx/bin/update` to reconfigure services.

---

<div class="post-metadata">

**Author:** ![chrisbst43](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@chrisbst43](https://discuss.openedx.org/u/chrisbst43)\
**Post date:** [January 14, 2021, 10:45am UTC](https://discuss.openedx.org/t/how-to-setup-studio-self-managed/4017/3 "2021-01-14T10:45:55Z")

</div>

Hi,  
I tried to put those lines in my config.yml and then call `/edx/bin/update platform etc master’ but I doesn’t want to update.

I tried to comment out the nginx conf file with #18010, but still the same result.  
I hadd a look on the cookie session stuffs but it seems ok.

---

<div class="post-metadata">

**Author:** ![mahyard](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/mahyard/32/54_2.png) [@mahyard](https://discuss.openedx.org/u/mahyard)\
**Post date:** [January 15, 2021, 8:15am UTC](https://discuss.openedx.org/t/how-to-setup-studio-self-managed/4017/4 "2021-01-15T08:15:44Z")

</div>

It has to be possible by changing port number from nginx virtual host block. don’t comment out the line. change the number to 80 and restart nginx service.
