Cover image for Nginx 1 Web Server Implementation Cookbook.
Nginx 1 Web Server Implementation Cookbook.
Title:
Nginx 1 Web Server Implementation Cookbook.
Author:
Sarkar, Dipankar.
ISBN:
9781849514972
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (282 pages)
Contents:
Nginx 1 Web Server Implementation Cookbook -- Table of Contents -- Nginx 1 Web Server Implementation Cookbook -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. The Core HTTP Module -- Introduction -- Installing new modules and compiling Nginx -- How to do it... -- There's more... -- Running Nginx in debug mode -- How to do it... -- There's more... -- Easy reloading of Nginx using the CLI -- How to do it... -- Splitting configuration files for better management -- How to do it... -- Setting up multiple virtual hosts -- How to do it... -- How it works... -- There's more... -- Setting up a default catch-all virtual host -- How to do it... -- How it works... -- Using wildcards in virtual hosts -- How to do it... -- How it works... -- Setting up the number of worker processes correctly -- How to do it... -- How it works... -- There's more... -- Increasing the size of uploaded files -- How to do it... -- There's more... -- Using dynamic SSI for simple sites -- How to do it... -- How it works... -- There's more... -- Adding content before and after a particular page -- How to do it… -- Enabling auto indexing of a directory -- How to do it... -- How it works... -- Serving any random web page from a directory -- How to do it... -- How it works... -- Serving cookies for identifying and logging users -- How to do it… -- How it works... -- There's more... -- Re-encoding the response to another encoding -- How to do it... -- How it works... -- There's more... -- Enabling Gzip compression on some content types.

How to do it... -- How it works... -- There's more... -- Setting up 404 and other error pages -- How to do it... -- How it works... -- 2. All About Rewrites: The Rewrite Module -- Introduction -- Setting up a simple redirect -- How to do it... -- How it works... -- There's more... -- Using variables in your rewrite -- How to do it... -- How it works... -- There's more... -- Using cookies for your rewrites -- How to do it... -- How it works... -- Using browser agents for your rewrites -- How to do it... -- How it works... -- Using rate limits as a condition for rewrites -- How to do it... -- How it works... -- There's more... -- Blocking requests based on HTTP referrers -- How to do it... -- How it works... -- Serving maintenance page when deploying -- How to do it... -- How it works... -- Setting up a WordPress site with static file serving -- How to do it... -- How it works... -- There's more... -- Setting up a Drupal site with static file serving -- How to do it... -- How it works... -- There's more... -- Setting up a Magento site with static file serving -- How to do it... -- How it works... -- Converting your Apache's .htaccess into Nginx rewrites -- How to do it... -- How it works... -- There's more... -- Using maps to make configurations cleaner -- How to do it... -- How it works... -- There's more… -- 3. Get It All Logged: The Logging Module -- Introduction -- Setting up error log path and levels -- How to do it... -- How it works... -- There's more... -- Logging it like Apache -- How to do it... -- How it works... -- Disabling logging of 404 in error logs -- How to do it... -- How it works... -- Using different logging profiles in the same setup -- How to do it... -- How it works... -- There's more... -- Enabling a log file cache -- How to do it... -- How it works... -- Utilizing separate error logs per virtual host -- How to do it...

How it works... -- There's more... -- Setting up log rotation -- How to do it... -- How it works... -- Enabling remote logging with syslog-ng -- How to do it... -- How it works... -- Setting up your custom logs for easy parsing -- How to do it... -- How it works... -- There's more... -- 4. Slow Them Down: Access and Rate Limiting Module -- Introduction -- Limiting requests for any given session -- How to do it... -- How it works... -- There's more... -- Blocking and allowing access using IP -- How to do it... -- How it works... -- There's more.... -- Setting up simple rate limiting for a download directory -- How to do it... -- How it works... -- There's more... -- Rate limiting search engine bots -- How to do it... -- How it works... -- There's more.... -- Setting up GeoIP using the MaxMind country database -- How to do it... -- How it works... -- Using the GeoIP module to set up access and rate control -- How to do it... -- How it works... -- 5. Let's be Secure: Security Modules -- Introduction -- Setting up HTTP auth for access control -- How to do it... -- How it works... -- Generating a secure link for files -- How to do it... -- How it works... -- Setting up HTTPS for a simple site -- How to do it... -- How it works... -- There's more... -- Using non standard error codes for debugging SSL setup -- How to do it... -- How it works... -- Using wildcard certificates with multiple servers -- How to do it... -- How it works... -- Using Nginx SSL variables for rewrite rules -- How to do it... -- How it works... -- There's more... -- 6. Setting Up Applications: FCGI and WSGI Modules -- Introduction -- Setting up a PHP FCGI site -- How to do it... -- How it works... -- There's more... -- Setting up a Python site using uWSGI -- How to do it... -- How it works... -- There's more... -- Modifying FCGI timeouts -- How to do it... -- How it works...

Utilizing FCGI cache to speed it up -- How to do it... -- How it works... -- Using multiple FCGI backends -- How to do it... -- How it works... -- 7. Nginx as a Reverse Proxy -- Introduction -- Using Nginx as a simple reverse proxy -- How to do it... -- How it works... -- Setting up a rails site using Nginx as a reverse proxy -- How to do it... -- How it works... -- Setting up correct reverse proxy timeouts -- How to do it... -- How it works... -- Setting up caching on the reverse proxy -- How to do it... -- How it works... -- There's more... -- Using multiple backends for the reverse proxy -- How to do it... -- How it works... -- Serving CGI files using thttpd and Nginx -- How to do it... -- How it works... -- Setting up load balancing with reverse proxy -- How to do it... -- How it works... -- There's more... -- Splitting requests based on various conditions using split-clients -- How to do it... -- How it works... -- 8. Improving Performance and SEO Using Nginx -- Introduction -- Setting up TCP options correctly for optimizing performance -- How to do it... -- How it works... -- Reducing the keep-alives to free up Nginx workers -- How to do it... -- How it works... -- Using Memcached as the cache backend -- How to do it... -- How it works... -- Configuring the right event model and file limits -- How to do it... -- How it works... -- Setting max-age expiry headers for client-side caching -- How to do it... -- How it works... -- Blocking scrapers, bots, and spiders to save bandwidth -- How to do it... -- How it works... -- Redirection of www to non-www domain for SEO -- How to do it... -- How it works... -- Removing all white space from response -- How to do it... -- How it works... -- Setting up server status for monitoring -- How to do it... -- How it works... -- Setting up Munin for 24x7 Nginx monitoring -- How to do it... -- How it works...

Enabling GZIP pre-compression -- How to do it... -- How it works... -- Preventing hotlinking using Nginx -- How to do it... -- How it works... -- Using embedded Perl to minify JavaScript files -- How to do it... -- How it works... -- There's more... -- Using embedded Perl to minify CSS files -- How to do it... -- How it works... -- Using embedded Perl to serve sitemaps (SEO) -- How to do it... -- How it works... -- Setting up Boost module on Drupal with Nginx -- How to do it... -- How it works... -- Setting up streaming for Flash files -- How to do it... -- How it works... -- Utilizing the 1x1 GIF serving module to do offline processing -- How to do it... -- How it works... -- 9. Using Other Third-party Modules -- Introduction -- Setting up an IMAP/POP3 proxy server -- How to do it... -- How it works... -- Setting up authentication for mail services -- How to do it... -- How it works... -- Setting up SSL for mail authentication -- How to do it... -- How it works... -- Using Nginx as a WEBDAV reverse proxy -- How to do it... -- How it works... -- Dynamic image resizing using Nginx -- How to do it... -- How it works... -- There's more... -- Replacing and searching text in Nginx response -- How to do it... -- How it works... -- Assembling ZIP files on the fly -- How to do it... -- How it works... -- Using Nginx as a HTTP publish-subscribe server -- How to do it... -- How it works... -- There's more... -- Transforming XML responses using XSLT templates -- How to do it... -- How it works... -- Setting up Etags for static content -- How to do it... -- How it works... -- Easy logging of page load times -- How to do it... -- How it works... -- Streaming of MP4/H.264 files -- How to do it... -- How it works... -- Setting up SCGI sites -- How to do it... -- How it works... -- Setting up expiring links -- How to do it... -- How it works...

10. Some More Third-party Modules.
Abstract:
Over 100 recipes to master using the Nginx HTTP server and reverse proxy.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Subject Term:
Electronic Access:
Click to View
Holds: Copies: