Welcome! Log In Create A New Profile

Advanced

RE: nginx proxy vs apache proxy

Lukas Tribus
June 18, 2013 10:24AM
Hi,


> Nginx responses show (regardless of how I try to connect):
>
> Scheme: http
> Name: my.example.com
> Port: 80
> [...]
> proxy_set_header Host $http_host;
> proxy_set_header X-Forwarded-By $server_addr:$server_port;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header X-Forwarded-Proto $scheme;

Are you sure Apache uses exactly the same headers when passing
the request to the backend? Compare the frontend/backend traffic
with apache and nginx, and adjust the nginx configuration accordingly.

Nginx will do what you configure; but I guess the values above
are not really inspected by your backend.



> Guess it's back to Apache since it handles it readily and has AJP support.

Take a look at nginx_ajp_module:
https://github.com/yaoweibin/nginx_ajp_module#readme



Regards,

Lukas
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx proxy vs apache proxy

solitaryr June 04, 2013 08:39PM

Re: nginx proxy vs apache proxy

solitaryr June 11, 2013 07:46PM

RE: nginx proxy vs apache proxy

Lukas Tribus June 18, 2013 10:24AM

Re: RE: nginx proxy vs apache proxy

solitaryr June 19, 2013 09:19AM

Re: RE: nginx proxy vs apache proxy

Jonathan Matthews June 19, 2013 09:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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