do_forward function

Forward root requests to an application