Welcome! Log In Create A New Profile

Advanced

Re: Serving website with Apache, with Nginx as interface?

May 14, 2016 05:55AM
Alex Hall Wrote:
-------------------------------------------------------
> upstream apache2Redirect {
> server 127.0.0.1:8080;
> }
>
> location / {
> proxy_set_header Host $host;
> proxy_pass http://apache2Redirect;
> }

Browser(get localhost:8080) -> osticket (return responses with localhost:8080)

Browser(get localhost:80) -> nginx proxy_pass localhost:8080 -> osticket (return responses with localhost:8080)
Browser attempts 8080 which is not the nginx proxy.

Ea. sometimes you need to tell the backend (osticket) what it's frontend address/port is.

This is a typical issue with tomcat applications, where you have to tell it is running on port 443 eventhough it is listening on port 8443 because nginx is setting in between handling port 443 proxying to 8443.

---
nginx for Windows http://nginx-win.ecsds.eu/
Subject Author Posted

Serving website with Apache, with Nginx as interface?

Alex Hall May 12, 2016 05:36PM

Re: Serving website with Apache, with Nginx as interface?

Sven Kirschbaum May 12, 2016 05:48PM

Re: Serving website with Apache, with Nginx as interface?

Yuriy Medvedev May 12, 2016 05:58PM

Re: Serving website with Apache, with Nginx as interface?

Alex Hall May 12, 2016 07:00PM

Re: Serving website with Apache, with Nginx as interface?

Yuriy Medvedev May 13, 2016 01:22AM

Re: Serving website with Apache, with Nginx as interface?

Alex Hall May 13, 2016 01:26PM

Re: Serving website with Apache, with Nginx as interface?

Francis Daly May 14, 2016 05:20AM

Re: Serving website with Apache, with Nginx as interface?

Alex Hall May 14, 2016 07:34AM

Re: Serving website with Apache, with Nginx as interface?

Alex Hall May 16, 2016 08:52AM

Re: Serving website with Apache, with Nginx as interface?

Francis Daly May 17, 2016 01:38PM

Re: Serving website with Apache, with Nginx as interface?

Alex Hall May 17, 2016 01:50PM

Re: Serving website with Apache, with Nginx as interface?

itpp2012 May 14, 2016 05:55AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
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