Welcome! Log In Create A New Profile

Advanced

Re: [solved] Re: proxy problem

June 07, 2010 10:50AM
On Mon, Jun 07, 2010 at 04:33:18PM +0200, lucas@landm.net wrote:

>
> Hi,
>
> Sorry, it was because rewrite was doing its jobs unexpected.
> We solved with this code:
>
> location / {
> rewrite ^(.*) https://webmail.landm.net$1 permanent;
> }

I do not see how this rewrite may resolve the issue.
BTW,

proxy_redirect on; // for nginx 0.6.33

is wrong for 0.6.x as well as 0.7.x.

> Regards,
> Lucas
>
> > Hi,
> >
> > We had nginx/0.6.33 and we migrated to nginx/0.7.65.
> > We use nginx as frontend for our webmail, that it is in another machine
> > (nginx+apache).
> > But in the new scenario, squirrelmail loss session (I guess) and force me
> > to relogin again.
> > Compile options and config files are the same (except for proxy_redirect)
> >
> > This is:
> > location / {
> > proxy_pass http://mailmachine:80;
> > proxy_redirect default; // for nginx 0.7.65
> > proxy_redirect on; // for nginx 0.6.33
> >
> > proxy_set_header Host $host;
> > proxy_set_header X-Real-IP $remote_addr;
> > proxy_set_header X-Forwarded-For
> > $proxy_add_x_forwarded_for;
> > proxy_set_header X-Forwarded-Proto https;
> > client_max_body_size 10m;
> > client_body_buffer_size 128k;
> > proxy_connect_timeout 90;
> > proxy_send_timeout 90;
> > proxy_read_timeout 90;
> > proxy_buffering on;
> > proxy_buffers 8 8k;
> > proxy_buffer_size 8k;
> > proxy_busy_buffers_size 16k;
> > proxy_temp_file_write_size 1024m;
> > }
> >
> > What changes are in version 0.7 that I should consider?
> >
> > Thank you in advance,
> > Lucas
> >
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://nginx.org/mailman/listinfo/nginx
> >
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx

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

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

proxy problem

Anonymous User June 07, 2010 06:34AM

[solved] Re: proxy problem

Anonymous User June 07, 2010 10:38AM

Re: [solved] Re: proxy problem

Igor Sysoev June 07, 2010 10:50AM

Re: [solved] Re: proxy problem

Anonymous User June 07, 2010 10:56AM

Re: [solved] Re: proxy problem

Igor Sysoev June 07, 2010 11:06AM

Re: [solved] Re: proxy problem

Gena Makhomed June 07, 2010 11:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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