Global Nginx directives

RR600

Verified User
Joined
Dec 26, 2019
Messages
57
I've been trying to set a global/default try_files directive so it's added on any new site I create.

If I understand correctly this is how you do it

I follow the steps there (using nginx_blank.conf template) and then I create a new account, the added directive is still not present.
Also tried adding it on /etc/nginx/nginx-includes.conf doesn't work either.

Thanks in advance for any input.
 
Last edited:
Probably I'm misunderstanding how this works, otherwise it should be a bug.
I guess my only option is to create /usr/local/directadmin/data/users/user/domains/domain.com.cust_nginx via the post account creation script.
 
The above worked, now I'm thinking if it's safe to /build rewrite_confs at that point :unsure:

Edit: It's not
 
Last edited:
Back
Top