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:
- Navigate to your HestiaCP dashboard and go to Server Settings (
:8083/list/server/). - From there, you’ll see a list of services. Select
nginx(:8083/edit/server/nginx/). - 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.