Welcome! Log In Create A New Profile

Advanced

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.

#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: 146
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready