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:Igor Sysoev (is-G@public.gmane.org)
Date:May 27, 2008 6:04:02 am
List:ru.sysoev.nginx

On Tue, May 27, 2008 at 01:29:23PM +0200, Dusan Turko wrote:

You may either fix Apache configuration or set in nginx:

- proxy_redirect off; + proxy_redirect http://www.mysite.com:8080/ /;

Thanks for your reply

1.)It helped just when I type http://www.mysite.com/test it shows a blank site (page does not exist) instead of redirect to http://www.mysite.com/test/

Could you create debug log of this request ?

2.) I use more virtual hosts on the server so I tryed to set up proxy_redirect *:8080/ /; and it does not work.

nginx does not support variables in left part of proxy_redirect, therefore you should configure Apache.

Any idea how to set it up in apache?

Look http://httpd.apache.org/docs/1.3/mod/core.html#usecanonicalname http://httpd.apache.org/docs/1.3/mod/core.html#port

Try to set UseCanonicalName on

and replace Port 8080 with Listen 8080