Ispconfig 3 nginx location directive order

bst2002

New Member
Hallo,

ich habe immer wieder das problem wenn ich im ISP bei webseite/Optionen zusätzliche Nginx Directiven eintrage, werden diese nicht in der Reihenfolge im vhost Conf eingetragen, das ist ärgerlich.
Standartmässig wird ja im Nginx Vhost Conf eine access deny auf "." Files eingetragen, meine Regel darunter wird ignoriert obwohl sie die erste bei den Nginx Optionen ist. Meine frage wie kann man die Reihenfolge beeinflussen...?


server_name server.tld ;

root /var/www/server.tld/web;

index index.html index.htm index.php index.cgi index.pl index.xhtml;

error_log /var/log/ispconfig/httpd/server.tld/error.log;
access_log /var/log/ispconfig/httpd/server.tld/access.log combined;
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}

...

location ~ /uploadimages/\.tmb/ {
allow all;
access_log off;
log_not_found off;
}
 

Werbung

Top