10 messages in ru.sysoev.nginxRe: nginx redirecting to wrong port
FromSent OnAttachments
Jodok BatloggApr 4, 2008 6:31 am 
RoxisApr 4, 2008 6:39 am 
Jodok BatloggApr 4, 2008 8:59 am 
Dusan TurkoMay 27, 2008 1:08 am 
Igor SysoevMay 27, 2008 1:31 am 
Dusan TurkoMay 27, 2008 1:55 am 
Igor SysoevMay 27, 2008 1:57 am 
Dusan TurkoMay 27, 2008 4:29 am 
Igor SysoevMay 27, 2008 6:04 am 
Dusan TurkoMay 27, 2008 7:22 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: nginx redirecting to wrong portActions...
From:Dusan Turko (list@public.gmane.org)
Date:May 27, 2008 1:55:00 am
List:ru.sysoev.nginx

Could you show your proxied location ?

<pre> location / { proxy_pass http://localhost:8080/; proxy_redirect off; port_in_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

client_max_body_size 10m; client_body_buffer_size 128k;

proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90;

proxy_buffer_size 4k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k; } </pre>

I use the same settings with apache2 on the other machine and there is no problem. As I told, the problem occurs with apache1.3

If I type in a browser http://www.mysite.com/test/ is ok but when i type http://www.mysite.com/test then it redirect to http://www.mysite.com:8080/test/