Added 'lib' to store application specific classes - may more these into their own package later but during initial development and testing I'll be placing them here for now!
Updated code to incluide new class to write configuration files for the upstream module in nginx, still testing and need it to read in data too.
Added some additonal code to split up the domain to the first domain name when using the serverNameToFilename() method.
Further changes to the generated format of the server blocks also added some 'hook' points too to dynamically determine config blocks when reading the nginx config.
Various code changes to the readConfig() method in order to read in an existing file to make changes etc.
NLB servers are automatically being recongised now but having an issue at present where the config file appears to double write itself after the main location proxy block.
Config class completed and tested, all seems to be working great, added the ability to output the configuration to JSON and also to the file system too (in the actual Nginx configuration format). All functioanlity is working great at present, all add additonal functionality (SSL support and other parameters) at a later date but for now basic proxy and NLB configuration is working, the class can write and read in configuration files and manuipulate and re-save changes as expected.