Welcome! Log In Create A New Profile



December 22, 2010 02:33PM
Подскажите пожалуйста как правильно делать редирект реквеста.

Пробовал так:
r->uri.data = new_uri;
r->uri.len = new_uri_size;
r->headers_in.server.data = new_host;
r->headers_in.server.len = new_host_size;

И вот так:
uri.data = new_uri;
uri.len = new_uri_size;
ngx_http_internal_redirect(r, &uri, &args);
ngx_http_finalize_request(r, NGX_DONE);

Ничего хорошего из этого не вышло.

Subject Author Posted


magz December 22, 2010 02:33PM

Re: редирект

magz December 28, 2010 09:04PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 248
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready