Take SCRIPT_NAME into account when determining auth node name.