Instant Nginx Starter [Instant]

This title is available as an eBook only
Instant Nginx Starter [Instant]
eBook: $14.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print & eBook also available on:
Learn in an Instant - Short, Fast, Focused
Table of Contents
Sample Chapters
  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Understand Nginx and its relevance to the modern web
  • Install Nginx and explore the different methods of installation
  • Configure and customize Nginx
  • Become familiar with the community and people around Nginx.

Book Details

Language : English
eBook : 48 pages
Release Date : April 2013
ISBN : 1782165126
ISBN 13 : 9781782165125
Author(s) : Martin Fjordvald
Topics and Technologies : All Books, Instant, Networking and Servers, Open Source

Table of Contents

Instant Nginx Starter
  • Instant Nginx Starter
    • So, what is nginx?
    • Installation
      • Step 1 – Different operating systems
        • Windows
        • Linux
        • Installing from source
      • Step 2- Starting nginx
      • And that's it
    • Quick start – Creating your first virtual host
      • Step 1 – Directives and contexts
      • Step 2 – Define your first virtual hosts
    • Quick start – Interacting with backends
      • Step 1 – A quick backend communication example
      • Step 2 – Location blocks
      • Step 3 – Directive types
      • Step 4 – Location reevaluation
      • Step 5 – Dealing with backends
      • Step 6 – What can you do if you get stuck?
    • Top 9 features you need to know about
      • Gzipping
      • Pre-gzipping
      • Using nginx as a full-page micro cache
        • Memcached micro cache
        • Built-in FastCGI cache
      • Using nginx behind other proxies
      • Setting up secure downloads
      • Doing GeoIP lookups
      • Limiting user requests
        • Limiting concurrent connections
        • Limit frequency of connections
      • Using nginx for streaming videos
        • Streaming FLV files
        • Streaming MP4 files
      • Using WebSockets with nginx
    • People and places you should get to know
      • Official links
      • Articles and tutorials
      • Community
      • Blogs
      • Twitter
      • About Packt Publishing
      • Writing for Packt

Martin Fjordvald

Martin Fjordvald is a 24-year-old Danish entrepreneur who started his company straight out of high school. Backed by a popular website he became a jack of all trades having to deal with both the business, programming and marketing side of his business. As the popularity of his website grew so did the performance requirements of his code and servers, which eventually led to his discovery of nginx in 2008.

Frustrated with the lack of documentation Martin got involved with the community project to document nginx and has since written several blog posts and wiki articles detailing how nginx works. With the improved official documentation he now mostly blogs about advanced subjects and provide support in the nginx IRC channel on freenode.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.

Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sorry, there are currently no downloads available for this title.

Frequently bought together

Instant Nginx Starter [Instant] +    Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide =
50% Off
the second eBook
Price for both: £12.15

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Gzipping and pre-gzipping responses and files
  • How to use WebSockets in nginx
  • Different methods of caching data in nginx
  • How to setup performant secure downloads with backend authentication
  • How to perform GeoIP lookups and provide the data to your backend.
  • How to use nginx for pseudo-streaming mp4 and flv video.

In Detail

Nginx is an open source web server and a reverse proxy server for HTTP, SMTP, POP3, and IMAP protocols. It is used to deploy dynamic HTTP content on a network using FastCGI and SCGI handlers for scripts and it serves as a software load balancer . Nginx enables the user to save resources compared to other major web servers such as Apache HTTP as well as provides site visitors with a faster load time for an improved user experience.

Instant Nginx Starter will show you how to install and set up nginx web server by introducing you to basics that covers an understanding of the nginx modules, which will help you to migrate from Apache to achieve high concurrency, performance and low memory usage.

Nginx Starter introduces you to the configuration file in its entirety, explaining the importance of different sections. The book then takes you through various examples based on core syntax and specific features enabling you to configure nginx.

During the course of the book, you will see how modern technology is merged with nginx by detailing an example based on websockets. The starter guide emphasizes optimizing load time through compression and caching of dynamic responses, while highlighting that nginx can seamlessly become part of a productive ecosystem of the software.

Through this book, you will have learned everything you need to control nginx behavior with an understanding over the tools to debug problems and execute plans.


Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks.This book is written in practical Starter style with lots of helpful examples which will guide you gently into the world of nginx.

Who this book is for

This book is targeted at those people who are new to nginx and want to learn the intricacies of nginx web server. The book assumes that the readers have basic knowledge of Linux and backends such as PHP, Apache, Ruby, and Python.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software