27/Nov 2013
產生 SSL 憑證 openssl genrsa -out server.key 512 openssl req -new -key server.key -out server.csr openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt SSL + Spdy server { listen 443 ssl spdy; ssl_certificate server.crt; ssl_certificate_key server.key; } Reverse proxy server { location /WebApp- { rewrite ^/WebApp-[^/]*/(.*)$ /WebApp/$1 redirect; } location = /WebApp { rewrite ^ /WebApp/ redirect; } location /WebApp/ { set $ver 1.0-SNAPSHOT-20131127-1412; rewrite ^/WebApp/(.*)$ /WebApp-$ver/$1