change doc_root pass method