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.

#PLABEL
#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: 265
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready