Custom HTTPD Configurations

czarny

New member
Joined
Apr 15, 2020
Messages
2
Hi,
Sorry if it is basic question, buty i didnt find the answer on forum and google - so problably i'm asking wrong :)

I have this situation that i'm using DA for mangaing my own private blog network (plenty od domains and ips + nginx mod).
The main question is:
How can I add some Custom HTTPD Configurations for all domains?
I want to create some http auth for /wp-admin, some "deny" for ahrefs bot and I need to add
Code:
location / {
            try_files $uri $uri/ /index.php?$args;
}
for wordpress slugs.

For now, I'm adding codes on every domains via "nginx.conf Customization for domain.com"
I believe that there is an easier way for that. Can you reffer me some possbile solution?
I have tried to edit the nginx.conf file - but i believe that file was overwritten to previous verision by firewall or something like that.
 
Back
Top