Nginx Proxy HTTPS Encrypted iServer

Feedback


 

The process of iServer using Nginx proxy HTTPS encryption is as follows:

Configure to turn on HTTPS as described in Configuring with APR , then configure the Nginx proxy to open a new window, as shown in the following example:

nginx.conf

server {

  listen       8000 ssl;

  server_name www.myiserver.com;

  ssl_certificate     the location of the certificate file for the private key;

  ssl_certificate_key     private key file location;

  ssl_session_cache   shared:SSL:1m;

  ssl_session_timeout 5m;

  ssl_ciphers HIGH:!aNULL:!MD5;

  ssl_prefer_server_ciphers on;

  location / {

    proxy_pass   http://172.16.120.86:8090;

    proxy_set_body $request_body;

    proxy_set_header Accept-Encoding "";

    proxy_set_header Host $host:8000;

    sub_filter_once off;

    sub_filter_types *;

    sub_filter 'http://$server_name:8000/iserver' 'https://$server_name:8000/iserver';

  }

}