Welcome! Log In Create A New Profile

Advanced

Re: SPDY, SSL termination and proxy_pass

Valentin V. Bartenev
October 31, 2013 08:30AM
On Thursday 31 October 2013 14:01:20 luckyknight wrote:
> I have setup SPDY on my application and have observed some nice reductions
> in page load times. However in a production environment my setup is
> somewhat different.
>
> At the moment my setup looks like this:
>
> server 1 running nginx, terminates ssl and uses proxy_pass to server 2
> server 2 running nginx, php-fpm and varnish etc. (actual web application)
>
> I have just setup on server 1 spdy protocol:
>
> server {
>
> listen *:443 ssl spdy;
>
> location / {
>
> proxy_pass http://someip;
> }
> }
>
> Now my question is with SSL and SPDY being terminated on the first server,
> do I still get the relevant performance improvement from using SPDY from
> the application that I am trying to use on server 2?
>

It's likely, yes.

> Does server 2 need SPDY enabled on nginx or does it not matter? Do I need
> to use proxy_pass https:// or https://someip:443 (and thus SSL installed
> on server 2?)

No, don't need, unless you care about security between your servers.

> Do I need to add_header alternative spdy on server 1?
>

Only if you also use plain http and want users switch to spdy when it's
possible.

> On a related note, I am also planning on setting up load balancing on a
> seperate application. It will have load balancing setup on server 1, with
> ssl/spdy and then upstream to server 2/3/4/5/6 etc. Will I also get SPDY
> performance improvements?
>

You will.

wbr, Valentin V. Bartenev

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

SPDY, SSL termination and proxy_pass

luckyknight October 31, 2013 06:01AM

Re: SPDY, SSL termination and proxy_pass

Valentin V. Bartenev October 31, 2013 08:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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