0
Beantwortet

Custom http nginx.conf

Beaudinn Greve vor 10 Jahren aktualisiert von Eugene Pankov (Project coordinator) vor 10 Jahren 1
I want to add my own things to nginx settings.
Not in the "server" section but in the Http section.

Like this map it should be placed outside the server block.

map $http_host $code {
 print.dev.net fr;
 print.dev.co.uk uk;
 print.dev.es es;
}

Antwort

Antwort
Beantwortet
You can achieve that by putting code into /etc/nginx.custom.d/codes.conf
GUT, ICH BIN ZUFRIEDEN.
thanks for the quick message back
And yes it works!
Thank you!
Zufriedenheit von Beaudinn Greve vor 10 Jahren
Antwort
Beantwortet
You can achieve that by putting code into /etc/nginx.custom.d/codes.conf