"Linux" Nginx installation using and configuring SSL support

Source: Internet
Author: User
Tags install openssl openssl

This article uses the Nginx source installation

1. Download Nginx Source Package

wget Http://nginx.org/download/nginx-1.8.0.tar

or login to the Nginx website to download a higher version

2, Nginx installation needs other environment support

Does the environment have GCC installed

Rpm-qa|grep GCC

If not, yum install gcc-c++ is required

is the environment installed Pcre

The file is a regular expression library. Let Nginx support rewrite need to install this library

If it is not installed, you can install yum-y with yum Pcre-devel

Environment is installed Zlib-devel

Yum Install Zlib-devel-y

Because we need to configure SSL to support HTTPS, we also need to openssl-devel this module

Yum Install OpenSSL openssl-devel-y

OK here to complete the environment preparation

Enter the Nginx source directory to install, because we need to support HTTPS access so install the time to add SSL module

Perform

./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module

After success

Make

Make install

and then to

The green nginx is the Nginx startup command.

Execute the Nginx boot command and specify the configuration file

Browser access: HTTP://IP can see the Nginx Welcome page, if not, see if the browser firewall is blocking port 80

Configure SSL

Open our/nginx/nginx-1.8.1/conf/nginx.conf file to start the Nginx designation

Found it

Restart after configuration is complete

Then the browser with HTTPS access

Ok!

"Linux" Nginx installation using and configuring SSL support

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.