<div dir="ltr">Take a look on <strong style="color:rgb(0,0,0);font-family:monospace;font-size:medium;line-height:16px;background-color:rgb(242,242,242)"><a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#port_in_redirect">port_in_redirect</a> </strong><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;line-height:16px;background-color:rgb(242,242,242)">and <b><a href="http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass">proxy_pass</a></b> configuration.</span><div><font color="#000000" face="monospace" size="3"><span style="line-height:16px"><br></span></font></div><div><font color="#000000" face="monospace" size="3"><span style="line-height:16px">You probably have to do a proxy_pass to Apache and ensure that the port number is removed from Apache response qhen there is a redirect.<br></span></font><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;line-height:16px;background-color:rgb(242,242,242)"><br></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 23, 2015 at 11:59 AM, sergiofm <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have nginx and apache2 in the same Ubuntu Server 14.04 and i want to use<br>
nginx as proxy server. My idea is when people write <a href="http://www.mysite.com" rel="noreferrer" target="_blank">www.mysite.com</a>, nginx<br>
redirect to apache and i can do that, but the problem is that apache is in<br>
port 81 and when nginx redirect, the url show <a href="http://www.mysite.com:81/mysite" rel="noreferrer" target="_blank">www.mysite.com:81/mysite</a>. I<br>
just want people to see <a href="http://www.mysite.com" rel="noreferrer" target="_blank">www.mysite.com</a>, without :81/mysite.<br>
<br>
Tanks,<br>
Sérgio Marques<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,259809,259809#msg-259809" rel="noreferrer" target="_blank">http://forum.nginx.org/read.php?2,259809,259809#msg-259809</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote></div><br></div>