Nginx installation SSL basic tutorial http://wiki.nginx.org/Modules#Standard_HTTP_modules here with all the basic modules, and the need for additional modules 1. install nginx [html] wget http://nginx.org/download/nginx-0.8.52.tar.gz tar zxvf nginx-0.8.52.tar.gz chown root: root nginx-0.8.52-R apt-get install libpcre3 libpcre3-dev apt-get install openssl apt-get install libssl-dev. /configure -- prefix =/usr/local/nginx -- with-http_stub_status_module -- with-http_ssl_module -- with-http_realip_module make install 2. configure the nginx configuration file [html] ssl on; ssl_certificate/etc/nginx/nginx_pas /*. crt; ssl_certificate_key/etc/nginx/nginx_pas /*. key; 3. configure nginx conf. All requests must access https [html] location/{rewrite ^ /(. *) https ://*. com/$1 permanent; # root/var/www/nginx-default; # index index.html index.htm ;}