Window NGINX+TOMCAT+HTTPS Deployment Scenarios Support iOS9

Source: Internet
Author: User

The client and Nginx walk between HTTPS communication, and Nginx to Tomcat through the Proxy_pass walk is a normal HTTP connection.

The following is a detailed configuration (nginx port 80/443,tomcat port 8080) Nginx This side of the configuration is nothing special:

Upstream localhost {#ip_hash ip_hash;     Server 127.0.0.1:8080;            } server {Listen 443;   server_name localhost; SSL On;ssl_certificate D://apache/nginx-1.8.0/https/1com_bundle.crt;ssl_certificate_key D://apache/nginx-1.8.0/ Https/test.key;ssl_session_timeout 10m;ssl_protocols SSLv3 TLSv1 TLSv1.1 tlsv1.2;ssl_prefer_server_ciphers on;ssl_ Ciphers Ecdhe-rsa-aes256-gcm-sha384:ecdhe-rsa-aes128-gcm-sha256:dhe-rsa-aes256-gcm-sha384:d He-rsa-aes128-gcm-sha256:ecdhe-rsa-aes256-sha384:ecdhe-rsa-aes128-sha256:ecdhe-rsa-aes256-sha: Ecdhe-rsa-aes128-sha:dhe-rsa-aes256-sha256:dhe-rsa-aes128-sha256:dhe-rsa-aes256-sha:dhe-rsa-aes128-sha: ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256: aes256-sha:aes128-sha:des-cbc3-sha:high:!anull:!enull:! export:! Des:! md5:! Psk:!            RC4;                    Location/{Proxy_connect_timeout 3;            Proxy_send_timeout 30;        Proxy_read_timeout 30;                Proxy_pass http://localhost;         Proxy_set_header Host $host;         Proxy_set_header X-real-ip $remote _addr;         Proxy_set_header remote-host $remote _addr;            Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for; }               }

  

The most critical of these are the two configurations of Ssl_certificate and Ssl_certificate_key, while others are configured as normal. But one more proxy_set_header x-forwarded-proto https; Configuration.

Tomcat's words are as good as the usual configuration.

In the introduction of how to apply for a free certificate it. https://www.startssl.com/This site has been updated,

Register what do not say, only you have a mailbox, you can apply Oh, login

Window NGINX+TOMCAT+HTTPS Deployment Scenarios Support iOS9

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.