Custom Nginx Config



Just recently aware of v4, and I got lost in so many things.
I am aware that v4 is using Docker, and I have no experience prior to this so apologies for my lack of knowledge.

I usually use some custom config on my old /etc/nginx/sites-enabled/
But since there’s no /etc/nginx. where should I write this custom config now?

And how do I restart nginx, after I add the config?
Using service nginx restart as usual didn’t give my anything but error.



According to document, it’s in /opt/easyengine/sites/ After that I use docker ps to see the name or ID of’s nginx container. Then docker restart <ID>.

Not sure if this is only way because it’s too complicate. Too much change on ee4 haha.


@sirmbhe You can place the custom configuration in /opt/easyengine/sites/ then use the site reload command to load the additional configuration that you want to add.