Connect middleware that serves PHP and static resources.