Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
May 14, 2016 05:20AM
On Fri, May 13, 2016 at 01:24:57PM -0400, Alex Hall wrote:

Hi there,

> It's as though the proxy weren't working properly at all.
> I have it set up in a location:
>
> upstream apache2Redirect {
> server 127.0.0.1:8080;
> }
>
> location / {
> proxy_set_header Host $host;
> proxy_pass http://apache2Redirect;
> }
>
> My understanding is that the / will match everything, from /index.html to
> /images/small/235.jpg. Is that not the case? Do I need to do something to
> my location block, by chance?

If the "location" you show above is the entire content of your server{}
block, then all requests that get to nginx should be handled in it.

If you have more config that you are not showing, then possibly that
extra config is interfering with what you want to do.


The best chance of someone being able to help, is if you can include
very specific details about what you do, what you see, and what you
expect to see instead.

If you use the "curl" command-line tool instead of a normal browser, you
can make one request and see the full response. If you know what response
you expect, you can compare it to the response that you actually get.


curl -v http://ngninx-server/OSTicket/

(or whatever url you have set things up at).

Without knowing what you do want to see, I'm pretty sure that you do
not want to see "127.0.0.1" or "8080" anywhere in the response.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 80
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