Load-balancing Microsoft Exchange with nginx+ – Part 2: Installing nginx+

nginxIn part 1 of this series I installed and configured keepalived in preparation for installing nginx+.

In this part, I install nginx+.

Other articles in the series:

  1. Installing and configuring keepalived
  2. Installing nginx+
  3. Configuring nginx+ for Microsoft Exchange
  4. Configuring Microsoft Exchange
  5. Tidying up

On each VM, create the /etc/ssl/nginx directory:

mkdir -p /etc/ssl/nginx

Download CA.crt to /etc/ssl/nginx:

wget https://cs.nginx.com/static/files/CA.crt -P /etc/ssl/nginx

As part of your nginx+ trial or when you bought the software, you will have been provided a link to nginx-repo.key and nginx.repo.crt. Download these and place in /etc/ssl/nginx:

mv nginx-repo.key nginx.repo.crt /etc/ssl/nginx

Next, create a yum repository to install nginx+:

wget https://cs.nginx.com/static/files/nginx-plus-6.repo -P /etc/yum.repos.d

Then use yum to install:

yum install -y nginx-plus

If there is any issue with CA.crt (ie. it is missing or the permissions are not set correctly) then yum will not install the software.  The same goes for nginx.repo.crt.

Finally, enable the service on both VMs:

chkconfig nginx on

That’s all there is to the nginx+ installation.

In part 3, I configure nginx+ to load-balance the Microsoft Exchange environment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.