update index.php so that it can proxy request