• 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.

This Article Has Been Shared 179 Times!

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)

  • How to Upload Backup to Dropbox from Cloud Server

    Here is How to Upload Backup to Dropbox from Cloud Server in Case You Want To Keep Your Backup of Files and Database on a Free Cloud Storage.

  • 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 XML-RPC Attack & Fake PHP5-FPM Error

    WordPress XML-RPC Attack Can Bring DDoS Resulting in Random 502 PHP5-FPM Errors on Nginx Server or Can Make the Database Down. Here is Fix.

  • unix Commands to Check Server Logs For Security

    Here is a Basic Guide For the Beginners to Self Manage Cloud Server Instances. Master these unix Commands to Check Server Logs For Security.

  • Linode Cloud Server Review (Taking HP Cloud as Standard)

    We Tested Linode Cloud Server Review Taking HP Cloud Standard. Free RedHat OpenShift is better for testing, OVH is better for cost reduction.

Additionally, 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

  • What Online Casinos Have No Deposit Bonus in Australia March 30, 2023
  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Steps to Upgrade Nginx for HTTP/2 Support (Ubuntu, Cloud Server)," in The Customize Windows, April 4, 2016, March 31, 2023, https://thecustomizewindows.com/2016/04/steps-to-upgrade-nginx-for-http2-support-ubuntu-cloud-server/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT