• Complain

Rahul Soni - Nginx: from beginner to pro

Here you can read online Rahul Soni - Nginx: from beginner to pro full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2016, publisher: Apress, Berkeley, CA, genre: Romance novel. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Rahul Soni Nginx: from beginner to pro
  • Book:
    Nginx: from beginner to pro
  • Author:
  • Publisher:
    Apress, Berkeley, CA
  • Genre:
  • Year:
    2016
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Nginx: from beginner to pro: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Nginx: from beginner to pro" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

This book teaches you to start up Nginx and quickly take your expertise to a level where you can comfortably work with various aspects of the web server and make informed design decisions for your web farm. Nginx powers more than 40% of the top 1000 websites and is among the handful of web servers that can handle more than 10K simultaneous connections. It has some features which are simply unparalleled. Nginx: From Beginner to Pro teaches the Nginx server in a practical way. Web administrators frequently struggle to fix the skill set gaps that happen due to a platform change. Migration from IIS & Apache becomes tedious at best. The book is targeted toward real-world administrators who would want to get up to speed as soon as possible and make good, informed design decisions. First you will set up Nginx and understand the architectural nuances. Then you will learn how to scale out, secure, monitor and troubleshoot the web server. Once you are fully comfortable with Nginx, you will start learning about migrating applications (or its part) from IIS or Apache web servers. Finally, you will learn to troubleshoot and maintain your Nginx professionally. Written by an author who has gone through the rough phase while moving from IIS/Apache to Nginx, this book is practical and filled with step-by-step instructions to make your time with Nginx as straightforward as possible. Read more...
Abstract: This book teaches you to start up Nginx and quickly take your expertise to a level where you can comfortably work with various aspects of the web server and make informed design decisions for your web farm. Nginx powers more than 40% of the top 1000 websites and is among the handful of web servers that can handle more than 10K simultaneous connections. It has some features which are simply unparalleled. Nginx: From Beginner to Pro teaches the Nginx server in a practical way. Web administrators frequently struggle to fix the skill set gaps that happen due to a platform change. Migration from IIS & Apache becomes tedious at best. The book is targeted toward real-world administrators who would want to get up to speed as soon as possible and make good, informed design decisions. First you will set up Nginx and understand the architectural nuances. Then you will learn how to scale out, secure, monitor and troubleshoot the web server. Once you are fully comfortable with Nginx, you will start learning about migrating applications (or its part) from IIS or Apache web servers. Finally, you will learn to troubleshoot and maintain your Nginx professionally. Written by an author who has gone through the rough phase while moving from IIS/Apache to Nginx, this book is practical and filled with step-by-step instructions to make your time with Nginx as straightforward as possible

Rahul Soni: author's other books


Who wrote Nginx: from beginner to pro? Find out the surname, the name of the author of the book and a list of all author's works by series.

Nginx: from beginner to pro — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Nginx: from beginner to pro" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Rahul Soni 2016
Rahul Soni Nginx 10.1007/978-1-4842-1656-9_1
1. Introduction to Nginx Web Server
Rahul Soni 1
(1)
Kolkata, West Bengal, India
When you type http://www.xyz.com in your browser, you probably dont even notice the HTTP (or HTTPS) that almost every URL is prefixed with. Browsing the Internet is fun, but what lurks underneath is nothing short of magical. It starts with a request; leaves your home WiFi router or network; hops through multiple network locations across the globe; and eventually reaches its destination, which is just another server whose job is to deliver what you are looking for. This final server is what you typically refer to as a web server .
That is, of course, an oversimplification of what a web server and HTTP is. But as we go along, you will learn the nitty-gritty around how this communication takes place, and where Nginx fits.
Nginx (pronounced engine-x) is the brainchild of Igor Sysoev . Its development started around 2002, and it was publicly released in 2004. It is available at www.nginx.org and is described by the Nginx team as a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server . Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.
HTTP Basics
HTTP stands for HyperText Transfer Protocol . Since the dawn of the Internet, HTTP has been playing a key role in delivering the content worldwide. In simple terms, you can consider HTTP as a set of rules for transferring files. If you notice carefully while browsing a website, you will find that there are files (like images, text, video, etc.) that display in your browser directly, while others (like zip, rar, etc.) get downloaded.
Think about it for a second: why does one file get downloaded, while others get rendered or played in the browser directly? The answer is simply because of how the web server and web client (typically your web browser) are interacting behind the scenes. You can think of HTTP as a language in which the web server and a web client communicates. As a website user, you are simply consuming the visual elements that the website creators planned for you. Hence, unless you are curious, you will hardly notice the underlying communication.
It is almost like using a refrigerator. You just need to know that it is used to preserve your food by keeping it cold and what goes in normal comes out chilled. You would hardly ever bother about how it actually works.
As an IT pro or a web developer, it is imperative that you understand how communication is taking place behind the scenes. Your knowledge of HTTP is extremely important in the context of this book. This knowledge will help you configure your web server in such a way that you get the best performance out of your web servers and ensure happy visitors on your website.
Can you see what HTTP looks like? Of course you can! There are multiple tools at your disposal , but for now let us seek help from your favorite browsers built-in developer tools. For brevity, we have chosen to use Google Chrome for the examples in this book. The steps will be quite similar if you use Mozilla Firefox or Internet Explorer .
  • Start Chrome.
  • Open Developer Tools using the menu. (Command + Alt + I or CTRL + Shift + I)
  • Switch to Network tab.
  • Browse to www.amazon.com and wait until the page loads.
  • Sort it by the Name column (click on the tab header) and examine a few packets.
  • In Figure , a specific CSS that starts with AmazonUI-xxxxxxxxx has been selected.
    Figure 1-1 View the inner details of an HTTP request We wont be sharing - photo 1
    Figure 1-1.
    View the inner details of an HTTP request
  • We wont be sharing details of all the headers at this point because the idea is to give you a little overview about how HTTP communication happens between your browser and the web server.
There are many things that should be noted in Figure . It has been annotated so that you can easily check the details:
  1. The browser made 183 requests to render just 1 page!
  2. In the Headers section, you can see the HTTP communication in action .
    1. a.
      Request URL : The request made by the browser for a specific asset.
    2. b.
      Remote Address : The IP address of the resource along with port information. The port defaults to 80 for an HTTP request.
    3. c.
      Request Method : The method tells the server and you can consider it as a verb. In this example, it is telling the server that it is only interested in receiving data and not POSTing it. Status Code = 200 means that the server said All okay!
  3. Response Headers : Similar to the request headers, there are response headers. It is telling a lot of things that is in plain English, but the key is to understand that it is not talking to you. In fact, it is talking to the browser. For example, when it says Content-Encoding is gzip, it simply means that all the data is compressed at the server side using the gzip algorithm and the browser is supposed to decompress that data. You can clearly see how important this discussion between the server and the browser is. All of these put together make your browsing experience a joy.
  4. The question now is this: how and why did it send the data in a compressed format? What if the browser had no clue about compression? Well, that part is taken care of by the request headers . The browser sent a header called Accept-Encoding with a value of gzip, deflate, sdch. It was an HTTP way of telling the server, You know what, lets save on bandwidth! I can decompress the data using gzip, deflate & sdch. I would prefer if you send it using gzip though (since gzip is the first option)! Essentially, what happened was that the request header went all the way to the server, and the server obliged, as you saw in the previous point, by sending the data that was compressed using gzip.
Interesting, right? All this and more for just one request! Thanks to HTTP, as an end user, you will never have to bother about such gory details.
By the way, did you notice the server header in Figure (labeled no. 3)? It says the web server is Nginx ! It is not a coincidence. You will find that the adoption of Nginx has increased rapidly in recent times. It has, in fact, become the number one web server for the top 10,000 busiest sites in the world. Among the top 1,000 websites of the world today, almost 40 percent use Nginx!
Extremely busy websites including Netflix, Dropbox, Pinterest, Airbnb, WordPress, Box, Instagram, GitHub, SoundCloud, Zappos, and Yandex use Nginx as part of their infrastructure, and for good reasons.
What Is a Web Server ?
In simple words, a web server is a server that hosts an application that listens to the HTTP requests. It is the web servers responsibility to hear (i.e., to understand HTTP) what the browser is saying, and respond appropriately. Sometimes, it could be as simple as fetching a file from the file system and delivering it to the web browser. At other times, it delegates the request to a handler that performs complicated logic and returns the processed response to the web server, which in turn transfers it back to the client! Typically, the server that hosts web server software is termed a web server or a web front-end server .
If you are new to the web servers world, dont worry. By the time you are done reading this book, you will have a good grasp on the subject.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Nginx: from beginner to pro»

Look at similar books to Nginx: from beginner to pro. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Nginx: from beginner to pro»

Discussion, reviews of the book Nginx: from beginner to pro and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.