Lines Matching refs:target

85 static nxt_int_t nxt_php_set_target(nxt_task_t *task, nxt_php_target_t *target,
519 nxt_php_set_target(nxt_task_t *task, nxt_php_target_t *target, in nxt_php_set_target() argument
553 target->root.length = nxt_strlen(p); in nxt_php_set_target()
554 target->root.start = p; in nxt_php_set_target()
556 nxt_php_str_trim_trail(&target->root, '/'); in nxt_php_set_target()
565 tmp = nxt_malloc(target->root.length + 1 + str.length + 1); in nxt_php_set_target()
572 p = nxt_cpymem(p, target->root.start, target->root.length); in nxt_php_set_target()
586 target->script_filename.length = nxt_strlen(p); in nxt_php_set_target()
587 target->script_filename.start = p; in nxt_php_set_target()
589 if (!nxt_str_start(&target->script_filename, in nxt_php_set_target()
590 target->root.start, target->root.length)) in nxt_php_set_target()
596 ret = nxt_php_dirname(&target->script_filename, in nxt_php_set_target()
597 &target->script_dirname); in nxt_php_set_target()
602 target->script_name.length = target->script_filename.length in nxt_php_set_target()
603 - target->root.length; in nxt_php_set_target()
604 target->script_name.start = target->script_filename.start in nxt_php_set_target()
605 + target->root.length; in nxt_php_set_target()
620 target->index.length = str.length; in nxt_php_set_target()
621 target->index.start = tmp; in nxt_php_set_target()
624 nxt_str_set(&target->index, "index.php"); in nxt_php_set_target()
986 nxt_php_target_t *target; in nxt_php_request_handler() local
991 target = &nxt_php_targets[r->app_target]; in nxt_php_request_handler()
996 ctx.root = &target->root; in nxt_php_request_handler()
997 ctx.index = &target->index; in nxt_php_request_handler()
999 if (target->script_filename.length == 0) { in nxt_php_request_handler()
1004 ctx.script_filename = target->script_filename; in nxt_php_request_handler()
1005 ctx.script_dirname = target->script_dirname; in nxt_php_request_handler()
1006 ctx.script_name = target->script_name; in nxt_php_request_handler()
1125 SG(request_info).request_uri = nxt_unit_sptr_get(&r->target);
1443 nxt_php_set_sptr(req, "REQUEST_URI", &r->target, r->target_length,