How do i edit the nginx.conf file

How do i edit the nginx.conf file, where is the location? and is safe to edit it? i just want to add a header.

To edit the nginx.conf file in HestiaCP:

  1. Navigate to your HestiaCP dashboard and go to Server Settings (:8083/list/server/).
  2. From there, you’ll see a list of services. Select nginx (:8083/edit/server/nginx/).
  3. Click on Advanced Options.

Once you’re in the configuration, locate the http { } block. You can safely add your desired header inside this block.

back up the current configuration before making changes. This way, you can easily restore it if something goes wrong.