Welcome! Log In Create A New Profile

Advanced

Re: ??: Re: ??: Re: Proxy_pass with runtime variables?

April 02, 2010 05:14AM
On Fri, Apr 02, 2010 at 02:04:37AM -0700, Quan Zhou wrote:

> I've changed the address to, but it works the same, I wonder how
> proxy_pass works, I guess it's working in IPv4 in my case.

Please respond to the list nginx@nginx.org, but not to me.
Could you create debug log of request ?


--
Igor Sysoev
http://sysoev.ru/en/

> 从我的 Windows(R) phone 发送。
>
> ----- 原始邮件 -----
> 发件人: Igor Sysoev <igor@sysoev.ru>
> 发送时间: 2010年4月2日 星期五 16:54
> 收件人: nginx@nginx.org <nginx@nginx.org>
> 主题: Re: ??: Re: Proxy_pass with runtime variables?
>
>
> On Fri, Apr 02, 2010 at 01:48:04AM -0700, Quan Zhou wrote:
>
> > Thank you for your reply, igor.
> > I've corrected server name field with a '_' (and tried $host
> > $http_host later), and both $server_name and $host can pass the
> > grammar check, it doesn't work finally, actually, it returns a cacti
> > page on my server for any request, I've checked entire configuration
> > files, cacti is only assigned to a domain name but bind to [::]:80,
> > however, I don't think this caused cacti has highier priority ...
> > :confused
>
> nginx can not bind to [::0]:80 since it's the same as [::]:80.
> Besides, nginx does not support IPV6 in proxy_pass now.
>
> > Quan Zhou
> > Sent from my Windows(R) phone.
> >
> > ----- 原始邮件 -----
> > 发件人: Igor Sysoev <igor@sysoev.ru>
> > 发送时间: 2010年4月2日 星期五 16:03
> > 收件人: nginx@nginx.org <nginx@nginx.org>
> > 主题: Re: Proxy_pass with runtime variables?
> >
> >
> > On Fri, Apr 02, 2010 at 12:00:01PM +0800, Quan Zhou wrote:
> >
> > > Hi all,
> > >
> > > I'm having issues with reverse proxy on Nginx
> > >
> > > I was setting up a reverse proxy listening [::0]:80 acts as 6 to 4 server on
> > > Nginx, so I've tried $host, $server_name, $http_host in proxy_pass field,
> > > but they all failed, and server threw same error:
> > >
> > >
> > > [emerg]: invalid number of arguments in "proxy_pass" directive in
> > > /etc/nginx/sites-enabled/reverse.proxy:16
> > >
> > >
> > > Here's my configuration file:
> > >
> > > server {
> > > listen [::0]:80;
> > > server_name *.*;
> >
> > "*.*" is invalid server_name.
> >
> > > access_log off;
> > > error_log off;
> > >
> > > location /{
> > > proxy_pass $server_name
> >
> > - proxy_pass $server_name
> > + proxy_pass $server_name;
> >
> > or probably
> >
> > - proxy_pass $server_name
> > + proxy_pass $host;

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

Re: ??: Re: ??: Re: Proxy_pass with runtime variables?

Igor Sysoev April 02, 2010 05:14AM

Re: ??: Re: ??: Re: Proxy_pass with runtime variables?

Quan Zhou April 02, 2010 09:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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