Are NGINX rules transferred to and from DevKinsta?

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:

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