fixed segfault when requesting the root of the public_html folder (ie, "http://127.0.0.1:5000/")