Nginx installation SSL basic tutorial http://wiki.nginx.org/Modules#Standard_HTTP_modules This includes all the basic modules and modules that need to be added. 1. install nginx [html] wget with the ssl module. http://nginx.org/download/nginx-0.8.5 Basic tutorial on installing SSL for Nginx http://wiki.nginx.org/Modules#Standard_HTTP_modules This includes all the basic modules and modules that need to be added. 1. install nginx [html] wget with the ssl module. http://nginx.org/download/nginx-0.8.5 2.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 ;}
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