Take a look on *port_in_redirect <http://nginx.org/en/docs/http/ngx_http_core_module.html#port_in_redirect> *and *proxy_pass <http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass>* configuration.
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. On Tue, Jun 23, 2015 at 11:59 AM, sergiofm <[email protected]> wrote: > I have nginx and apache2 in the same Ubuntu Server 14.04 and i want to use > nginx as proxy server. My idea is when people write www.mysite.com, nginx > redirect to apache and i can do that, but the problem is that apache is in > port 81 and when nginx redirect, the url show www.mysite.com:81/mysite. I > just want people to see www.mysite.com, without :81/mysite. > > Tanks, > Sérgio Marques > > Posted at Nginx Forum: > http://forum.nginx.org/read.php?2,259809,259809#msg-259809 > > _______________________________________________ > nginx mailing list > [email protected] > http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
