Hi Thomas, thanks for your reply.
Yes, I have read the SPDY proxy example documentation.
I am using jetty-9.0.0.v20130308 .
This is my start.ini:
--exec
-Xbootclasspath/p:lib/npn-
boot-1.1.2.v20130305.jar
OPTIONS=Server,ext,spdy
etc/jetty.xml
etc/jetty-spdy-proxy.xml
I have not touched the etc/jetty.xml file.
This is in etc/jetty-spdy-proxy.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN"
"
http://www.eclipse.org/jetty/configure_9_0.dtd">
<Configure id="Server" class="org.eclipse.jetty.
server.Server">
<New id="sslContextFactory"
class="org.eclipse.jetty.util.
ssl.SslContextFactory">
<Set name="KeyStorePath"><Property name="jetty.home" default="."
/>/etc/keystore</Set>
<Set name="KeyStorePassword">OBF:
1vny1zlo1x8e1vnw1vn61x8g1zlu1v
n4</Set>
<Set name="KeyManagerPassword">OBF:
1u2u1wml1z7s1z7a1wnl1u2g</Set>
<Set name="TrustStorePath"><
Property name="jetty.home" default="."
/>/etc/keystore</Set>
<Set
name="TrustStorePassword">OBF:
1vny1zlo1x8e1vnw1vn61x8g1zlu1v
n4</Set>
</New>
<New id="tlsHttpConfig"
class="org.eclipse.jetty.
server.HttpConfiguration">
<Arg><Ref refid="httpConfig"/></Arg>
<Call name="addCustomizer">
<Arg><New
class="org.eclipse.jetty.
server.
SecureRequestCustomizer"/></
Arg>
</Call>
</New>
<New id="spdyProxyEngine"
class="org.eclipse.jetty.spdy.
server.proxy.SPDYProxyEngine">
<Arg>
<New class="org.eclipse.jetty.spdy.
client.SPDYClient$Factory">
<Call name="start"/>
</New>
</Arg>
</New>
<New id="proxyEngineSelector"
class="org.eclipse.jetty.spdy.
server.proxy.
ProxyEngineSelector">
<Call name="putProxyEngine">
<Arg>spdy/3</Arg>
<Arg>
<Ref refid="spdyProxyEngine"/>
</Arg>
</Call>
<Set name="proxyServerInfos">
<Map>
<Entry>
<Item>localhost</Item>
<Item>
<New
class="org.eclipse.jetty.spdy.
server.proxy.
ProxyEngineSelector$
ProxyServerInfo">
<Arg type="String">spdy/3</Arg>
<Arg>127.0.0.1</Arg>
<Arg type="int">7070</Arg>
</New>
</Item>
</Entry>
</Map>
</Set>
</New>
<Call name="addConnector">
<Arg>
<New
class="org.eclipse.jetty.spdy.
server.proxy.
HTTPSPDYProxyServerConnector">
<Arg>
<Ref refid="Server"/>
</Arg>
<Arg>
<Ref refid="proxyEngineSelector"/>
</Arg>
<Set name="Port">8080</Set>
</New>
</Arg>
</Call>
<Call name="addConnector">
<Arg>
<New
class="org.eclipse.jetty.spdy.
server.proxy.
HTTPSPDYProxyServerConnector">
<Arg>
<Ref refid="Server"/>
</Arg>
<Arg>
<Ref refid="sslContextFactory"/>
</Arg>
<Arg>
<Ref refid="proxyEngineSelector"/>
</Arg>
<Set name="Port">8443</Set>
</New>
</Arg>
</Call>
</Configure>
I have not changed the sslContextFactory configuration (is straight from
the distribution).
Now, to try this out, I am running an HTTP server on the same machine as
the SPDY proxy, listening on port 7070. The proxy is started with: java
-jar start.jar. In my chrome browser, on the same machine, I go to
https://localhost:8443/ . No result in the browser (keeps loading). No
incoming request for the HTTP server on 7070.
Jetty output at this point:
$ java -jar start.jar
2013-03-11 22:21:29.421:INFO:oejs.Server:
main: jetty-9.0.0.v20130308
2013-03-11 22:21:29.535:INFO:oejssp.
HTTPSPDYProxyServerConnector:
main:
Started HTTPSPDYProxyServerConnector@
63a4bb{HTTP/1.1}{
0.0.0.0:8080