Welcome! Log In Create A New Profile


Re: ifdefine alternative

February 17, 2015 04:45PM
A much easier option is to use labels and perl to swap comment items around in the nginx.conf file.

#development line....;
production line....;

if readln eq '^#PLABEL' then { swap 2 lines comment char; } else { write unchangedline; }

Or something in that order.

nginx for Windows http://nginx-win.ecsds.eu/
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: 76
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