Barniz, Nginx y SSL

Barniz, Nginx y SSL

Agregué SPDY a mi servidor la semana pasada, que ejecuta Varnish para cobrar y Nginx como servidor web.

Varnish estaba escuchando en el puerto 80 y Nginx en 8080 y 443. El tráfico en 8080 se redirige usando

rewrite ^ https://www.maartenprovo.be$request_uri permanent;

Ahora, sin embargo, Varnish está escuchando en los puertos 80 y 443 y Nginx en 8080 y 444.

En /etc/default/varnish cambié

DAEMON_OPTS=”-a :80 \

a

DAEMON_OPTS="-a :80,:443 \

Luego hice esto para /etc/varnish/defacult.vcl :

backend web {
    .host = "127.0.0.1";
    .port = "8080";
    .connect_timeout = 600s;
    .first_byte_timeout = 600s;
    .between_bytes_timeout = 600s;
    .max_connections = 800;
}

# Port 443 Backend Servers for SSL
backend web_ssl {
    .host = "127.0.0.1";
    .port = "444";
    .connect_timeout = 600s;
    .first_byte_timeout = 600s;
    .between_bytes_timeout = 600s;
    .max_connections = 800;
}

acl purge {
        "localhost";
}

# Respond to incoming requests.
sub vcl_recv {
  # Set the director to cycle between web servers.
  if (server.port == 443) {
    set req.backend = web_ssl;
  }
  else {
    set req.backend = web;
  }

...
}

Pero no funciona... ¿En qué me equivoqué?

información relacionada