Nginx and Apach2

Wandenberg Peixoto wandenberg at gmail.com
Tue Jun 23 15:25:02 UTC 2015


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 <nginx-forum at nginx.us> 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
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150623/79627c9c/attachment.html>


More information about the nginx mailing list