Editing user based nginx.conf and keep it.


Verified User
Apr 20, 2008
I have managed to run asp.net core 5 app on directadmin but DA gui does not allow editing nginx.conf for "location part".

What I need is, to be able to edit nginx.conf and change following part, but DA does not allow it.

location /
# access_log off;
proxy_buffering off;
proxy_set_header X-Client-IP $remote_addr;
proxy_set_header X-Accel-Internal /nginx_static_files;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_hide_header Upgrade;

Editing file directly is bad idea as it will be overwritten by updates. I also need to do this for only some domains.

Here she mentioned about:
If you need it for one domain only, creating & editing the following should work (can be done via DA GUI Custom HTTPD Configurations):