1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-12-22 15:48:53 -05:00

Updated README

This commit is contained in:
Tatsuhiro Tsujikawa 2012-07-15 21:54:55 +09:00
parent 06eac680e8
commit 83b3827b51

View File

@ -51,6 +51,20 @@ example program), the following packages are needed:
* libevent-openssl >= 2.0.8 * libevent-openssl >= 2.0.8
If you are using Ubuntu 12.04, you need the following packages
installed:
* autoconf
* automake
* autotools-dev
* libtool
* pkg-config
* zlib1g-dev
* libcunit1-dev
* libssl-dev
* libxml2-dev
* libevent-dev
Build from git Build from git
-------------- --------------
@ -251,6 +265,33 @@ Here is the command-line options::
For those of you who are curious, ``shrpx`` is an abbreviation of For those of you who are curious, ``shrpx`` is an abbreviation of
"Spdy/https to Http Reverse ProXy". "Spdy/https to Http Reverse ProXy".
Without ``-s`` option, it works in the following configuration::
client <-- SPDY, HTTPS --> Shrpx <-- HTTP --> Web Server
With ``-s`` option, it works in the following configuration::
client <-- SPDY, HTTPS --> Shrpx <-- HTTP --> Proxy server (e.g., Squid)
* client is configured to use Shrpx as SSL/SPDY proxy.
At the time of this writing, Chrome is the only browser which supports
SSL/SPDY proxy. The one way to configure Chrome to use SSL/SPDY proxy
is create proxy.pac script like this::
function FindProxyForURL(url, host) {
return "HTTPS SERVERADDR:PORT";
}
``SERVERADDR`` and ``PORT`` is the hostname/address and port of the
machine shrpx is running. Please note that Chrome requires valid
certificate for SSL/PROXY.
Then run chrome with the following arguments::
$ google-chrome --proxy-pac-url=file:///path/to/proxy.pac --use-npn
Other examples Other examples
++++++++++++++ ++++++++++++++