Welcome! Log In Create A New Profile

Advanced

Re: Вопрос по nginx proxy + perl

October 02, 2012 06:25AM
Я так делаю:

set $fake $request_uri; # без этого в перле не будет доступна переменная $request_uri
location ^~ /int_php/ {
internal;
proxy_pass http://127.0.0.1:8080/;
}
location / {
set $backend /int_php;
perl module::do;
}

в perl - $r->internal_redirect($r->variable("backend").$r->variable("request_uri"));

P.S.:
На именованные location internal_redirect из не работает. Что печалит =(.
Subject Author Posted

Вопрос по nginx proxy + perl

softsoft December 21, 2009 10:55AM

Re: Вопрос по nginx proxy + perl

actionless September 26, 2012 09:23AM

Re: Вопрос по nginx proxy + perl

Maxim Dounin September 26, 2012 09:38AM

Re: Вопрос по nginx proxy + perl

actionless September 26, 2012 09:53AM

Re: Вопрос по nginx proxy + perl

actionless September 26, 2012 10:15AM

Re: Вопрос по nginx proxy + perl

pauc October 02, 2012 06:25AM

Re: Вопрос по nginx proxy + perl

Maxim Dounin September 26, 2012 10:32AM

Re: Вопрос по nginx proxy + perl

actionless September 26, 2012 10:44AM

Re: Вопрос по nginx proxy + perl

actionless September 26, 2012 10:45AM

Re: Вопрос по nginx proxy + perl

Maxim Dounin September 26, 2012 10:34AM

Re: Вопрос по nginx proxy + perl

Andrey Velikoredchanin September 28, 2012 04:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready