Welcome! Log In Create A New Profile


ifdefine alternative

February 17, 2015 03:36PM
I have existing apache configuration which updates it's allow-deny rules
based on whether it's development or production system. For example, apache
gets started with '-D ${HOST_ENVIRONMENT}' parameter which is then used in
IFDefine block. I was wondering if Nginx has any options to use similar

I thought about using perl modules to set variables based on environment
variable, but I was wondering if there are any other options. Any ideas on
alternative to -D/IfDefine will be helpful.

thanks, N
nginx mailing list
Subject Author Posted

ifdefine alternative

neubyr February 17, 2015 03:36PM

Re: ifdefine alternative

itpp2012 February 17, 2015 04:45PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready