Sub-domain management script to write files for nginx