Nginx Spdy Server__spdy

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.