Custom Nginx Config


#1

Hi,

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/somesite.com
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.

Thanks


#2

According to document, it’s in /opt/easyengine/sites/example.com/config/nginx/. After that I use docker ps to see the name or ID of example.com’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.


#3

@sirmbhe You can place the custom configuration in /opt/easyengine/sites/example.com/config/nginx/custom.conf then use the site reload https://easyengine.io/commands/site/reload/ command to load the additional configuration that you want to add.