1

I want to have these rules on ALL sites. I just have no idea how to do it.

location = /favicon.ico {
    expires 168h;
    log_not_found off;
    access_log off;
    #return 404;
}

location = /robots.txt {
    expires 168h;
    log_not_found off;
    access_log off;
}

location = /someotherlocation.ext {
    log_not_found off;
    access_log off;
}

2 Answers 2

0

I don't think this is possible.
Workaround: move these settings to a separate file and include it in every server.

0

Put it in a file and include this file in all your virtual host.

You must log in to answer this question.