0
Résolu

Custom http nginx.conf

Beaudinn Greve il y a 10 ans mis à jour par Eugene Pankov (Project coordinator) il y a 10 ans 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;
}

Solution

Solution
Résolu
You can achieve that by putting code into /etc/nginx.custom.d/codes.conf
JE SUIS SATISFAIT
thanks for the quick message back
And yes it works!
Thank you!
Note de satisfaction par Beaudinn Greve il y a 10 ans
Solution
Résolu
You can achieve that by putting code into /etc/nginx.custom.d/codes.conf