Welcome! Log In Create A New Profile

Advanced

Re: Nginx and Apach2

June 23, 2015 11:26AM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx and Apach2

sergiofm June 23, 2015 10:59AM

Re: Nginx and Apach2

wandenberg June 23, 2015 11:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready