0
Answered

Custom http nginx.conf

Beaudinn Greve 10 years ago updated by Eugene Pankov (Project coordinator) 10 years ago 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;
}

Answer

Answer
Answered
You can achieve that by putting code into /etc/nginx.custom.d/codes.conf
GOOD, I'M SATISFIED
thanks for the quick message back
And yes it works!
Thank you!
Satisfaction mark by Beaudinn Greve 10 years ago
Answer
Answered
You can achieve that by putting code into /etc/nginx.custom.d/codes.conf