Welcome! Log In Create A New Profile

Advanced

Re: proxy_pass для location на другой сервер

Ilya Ivantsov
May 28, 2014 06:00AM
28/05/14 13:54 , maks пишет:
> Прошу не пинать сильно, но голова вскипела (может не внимательно читал).
>
> nginx.conf дефолтный для Debian Wheezy
>
> Суть задачи - проксировать определенный location на некий сервер с
> Apache. Возможно ли такое?
>
>
> Пробовал так:
>
> location /server1 {
> ...
> rewrite ^/server1(.*)$ $1 break;
> proxy_pass http://server1.com;
> ...
>
> }
>
> не получилось.

Перемудрили, попробуйте так:

location /server1/ {
...
proxy_pass http://server1.com/;
...

}

>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

proxy_pass для location на другой сервер

maks May 28, 2014 05:56AM

Re: proxy_pass для location на другой сервер

Aleksandr Sytar May 28, 2014 05:58AM

Re: proxy_pass для location на другой сервер

Ilya Ivantsov May 28, 2014 06:00AM

Re: proxy_pass для location на другой сервер

maks May 28, 2014 06:24AM

Re: proxy_pass для location на другой сервер

Валентин Бартенев May 28, 2014 06:26AM

Re: proxy_pass для location на другой сервер

maks May 28, 2014 06:32AM

Re: proxy_pass для location на другой сервер

Anton Gorlov May 28, 2014 06:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 240
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