Set Variable from Content of Text File?

Resicow resicow at gmail.com
Thu Jan 8 23:05:00 MSK 2009


Hello Nginx Community, and Happy New Year...

Is it possible to set the value of a variable based on the contents of a 
text file?

So if there is site downtime, I can place a file in a directory that 
nginx will see and will know to serve a downtime notice, but then can 
nginx read the contents of the file to determine which downtime notice 
to serve?

Thanks,

John





More information about the nginx mailing list