• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Steps to Upgrade Nginx for HTTP/2 Support (Ubuntu, Cloud Server)

By Abhishek Ghosh April 4, 2016 12:50 pm Updated on April 4, 2016

Steps to Upgrade Nginx for HTTP/2 Support (Ubuntu, Cloud Server)

Advertisement

We are taking it granted that who is reading this guide followed the steps like described in our guide for the setup of Nginx WordPress installation and website is already HSTS. Here the Steps to Upgrade Nginx for HTTP/2 Support on Cloud Server Running Ubuntu OS from Nginx with SPDY. We DO NOT recommend this upgrade on production website at time of publication of this article (4th April, 2016). Still, we are taking it as a working development site which needs some backup.

 

Understanding Difference in Repo & Versions For Nginx for HTTP/2 Support on Ubuntu

 

Normally we suggest to use apt-get install nginx-extras command to install Nginx Community Version from Debian Repo. nginx-extras has all the needed modules including cache purge module. As nginx-extras is intended for the advanced users, nginx-extras at this moment has no support for HTTP/2. It supports SPDY.

For Nginx with HTTP/2 on Ubuntu 14.04 KTS, we can use the ppa:nginx/development repository, which is clone of the Nginx MAINLINE branch. From this MAINLINE, Nginx Plus is developed.

Advertisement

---

Upgrade-Nginx-for-HTTP-2

 

Steps to Upgrade Nginx for HTTP/2 Support (Ubuntu)

 

So, you need to remove that old apt version of Nginx. It is obviously, you need to take backup of you minimum two settings files for an active website. One is that ../../sites-available/default and another is /etc/nginx/nginx.conf. We are assuming that, the user not exactly an advanced user. Any of the command below will work for the purpose i.e. upgrade Nginx for HTTP/2 support :

Vim
1
2
cat /etc/nginx/nginx.conf > ~/nginx.conf
cp /etc/nginx/nginx.conf > ~/nginx.conf

In the same way, take backup of another file. Then check by opening the backup with any text editor. Then proceed to remove Nginx and Install the desired one

Vim
1
2
3
4
5
6
7
sudo apt-get remove nginx*
sudo apt-get purge nginx*
rm -rf /etc/nginx
sudo add-apt-repository ppa:nginx/development
sudo apt-get update
sudo apt-get install nginx
sudo service nginx restart

This is an example basic configuration :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
server {
    listen 443 ssl http2;
    server_name thecustomizewindows.com;
    root /usr/share/nginx/html;
    ssl on;
    ssl_certificate     /etc/ssl/example/example.crt;
    ssl_certificate_key /etc/ssl/example/example.key;
    ssl_protocols              TLSv1 TLSv1.1 TLSv1.2;
  # ssl_ciphers    ;
  # ssl_prefer_server_ciphers  on;
    ssl_session_cache    shared:SSL:10m;
    ssl_session_timeout  24h;
    keepalive_timeout 300;
    location / {
        try_files $uri $uri/ =404;
    }
}

In nginx.conf file, the directives will differ :

Vim
1
2
3
4
5
http2_chunk_size 8k;
http2_idle_timeout 3m;
http2_max_concurrent_streams 128;
http2_max_field_size 4k;
http2_max_header_size 16k;

Nginx has guides :

Vim
1
http://nginx.org/en/docs/http/ngx_http_v2_module.html

As a normal webmaster does not have 2-3 dedicated software engineers for bug checking and other matters, at this moment, we actually do not suggest this upgrade for production site. Other way is to use Nginx Plus. After paying $1700 per annum for Nginx Plus, obviously there will be custom support. Cloud Flare or other bigger websites has dedicated team to manage the software development part. SPDY is enough at this moment for production sites.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Steps to Upgrade Nginx for HTTP/2 Support (Ubuntu, Cloud Server)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Steps To Install Nginx Plus on Ubuntu Server (HP Cloud)

    Here Are the Steps To Install Nginx Plus on Ubuntu Server Running on HP Cloud. Nginx Plus is the Paid Version of Nginx with Extra Features.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • How to Install WordPress : Ubuntu 16.04, Nginx, PHP7-FPM

    Here is Step by Step Guide on How to Install WordPress on Ubuntu 16.04, Nginx, PHP7-FPM, memcached & Percona MySQL 5.7 on Cloud Server or VPS.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy