Nginx and Apach2

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

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs