# Are NGINX rules transferred to and from DevKinsta?

**URL:** https://community.kinsta.com/t/are-nginx-rules-transferred-to-and-from-devkinsta/366
**Category:** Application Support
**Created:** [February 14, 2021, 10:23pm UTC](https://community.kinsta.com/t/are-nginx-rules-transferred-to-and-from-devkinsta/366 "2021-02-14T22:23:58Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jeff](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jeff/32/16_2.png) [@jeff](https://community.kinsta.com/u/jeff)
#### Post date: [February 15, 2021, 3:01pm UTC](https://community.kinsta.com/t/are-nginx-rules-transferred-to-and-from-devkinsta/366/2 "2021-02-15T15:01:49Z")

</div>

Hi Alex,

DevKinsta does not automatically push or pull the Nginx configurations from your Kinsta site and so those would need to be added manually to work on DevKinsta.

To do this, you will need to open your command prompt and run the following command:

> docker exec -it devkinsta\_nginx bash

You’ll then need to install a text editor of your choice

> apt update && apt install nano -y

Or

> apt update && apt install vim -y

Once you’ve installed an editor, you’ll want to navigate to the following directory

> cd /etc/nginx/sites

There you’ll see a few different files. Look for the one that resembles your site name. It should also be the only one with **.conf** on the end of the file.

Then you would edit the file using nano/vim.

> nano /etc/nginx/sites/sitename.conf

Add your changes below the **last** location block as shown here:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/19f3a86d60c21ee8f8b537d06fa1afe834392a48.png)

Once this is done, exit your text editor and the container. You can use control+d to exit or cmd + d on MacOS.

Now restart the Nginx container with the following command:

> docker restart devkinsta\_nginx

---

_[View the full topic](https://community.kinsta.com/t/are-nginx-rules-transferred-to-and-from-devkinsta/366)._
