Update web/index.php

Fixed a bug causing the default environment to not be set correctly.