Download Nginx
Using 1.3.15:http://nginx.org/en/download.html
compiling Nginx
./configure--with-http_ssl_module--with-http_spdy_module
Make
Make install
Configure NginxTranslates the 443-port Spdy request into an HTTP request and forwards it to the proxy. such as: HTTPS://192.168.2.203:443/API/V1/HOTEL/SEARCH/1==>HTTP://192.168.0.207:9602/API/V1/HOTEL/SEARCH/1
server {
listen 443 SSL spdy;
Spdy_headers_comp 9;
Ssl_certificate server.crt;
Ssl_certificate_key Server.key;
# Access_log Logs/spdy.log;
Location/{
proxy_pass http://192.168.2.207:9602;
}
}
Android CallClient Example:https://github.com/square/okhttp
Connect the newly built server to the error
caused By:sun.security.validator.ValidatorException:PKIX path building failed: Sun.security.provider.certpath.SunCertPathBuilderException:unable to find valid certification path to requested target
The reason is that the certificate used on the server is not a trusted certificate (test usage, non-public letter certificate), and you need to add the certificate to the JRE's trusted certificate
Way reference: http://www.mkyong.com/webservices/jax-ws/ Java class in suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/: http:// blog.csdn.net/faye0412/article/details/6883879