Changed config files, and php scripts to make NginX supported too