tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
603 stars 102 forks source link

it can not works as secure SPDY proxy #70

Closed tomjun closed 11 years ago

tomjun commented 11 years ago

Hi, I read the document and try to use "-s" let shrpx works as SPDY proxy but faild:

./shrpx -s /root/cert_test/ws1.key /root/cert_test/ws1.crt

I go to chrome and config the spdy proxy,I try to visit google but got a error:

502 Bad Gateway

shrpx spdylay/0.3.8 at port 3000

tomjun commented 11 years ago

My pac file

function FindProxyForURL(url, host) { return "HTTPS SERVER_ADDR:3000"; }

tatsuhiro-t commented 11 years ago

Did you setup backend proxy server (e.g., squid) ?

tomjun commented 11 years ago

Hi,I must have a backend server?I thought shrpx works like node-spdyproxy?

tatsuhiro-t commented 11 years ago

The backend proxy server is required.

Client <-- (SPDY, HTTPS) --> Shrpx <-- (HTTP) --> Proxy
                          [SPDY proxy]            (e.g., Squid)
tatsuhiro-t commented 11 years ago

Since this is not an issue of spdylay, let' close the issue.