Nginx 1 Web Server
Implementation
Cookbook
Over 100 recipes to master using the Nginx HTTP server
and reverse proxy
Dipankar Sarkar
BIRMINGHAM - MUMBAI
Downloa d f r o m W o w ! e B o o k < w w w.woweb o o k . c o m >
Nginx 1 Web Server Implementation Cookbook
Copyright © 2011 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system,
or transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing, and its
dealers and distributors will be held liable for any damages caused or alleged to be
caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2011
Production Reference: 1180511
Published by Packt Publishing Ltd.
32 Lincoln Road
Olton
Birmingham, B27 6PA, UK.
ISBN 978-1-849514-96-5
www.packtpub.com
Cover Image by Javier Barria (jbarriac@yahoo.com)
Credits
Author
Dipankar Sarkar
Reviewers
Valery Kholodkov
José Miguel Parrella
Michael Shadle
Acquisition Editor
Usha Iyer
Development Editor
Hyacintha D'Souza
Technical Editor
Kavita Iyer
Copy Editor
Neha Shetty
Project Coordinator
Srimoyee Ghoshal
Proofreader
Samantha Lyon
Indexer
Tejal Daruwale
Graphics
Nilesh Mohite
Production Coordinator
Kruthika Bangera
Cover Work
Kruthika Bangera
About the Author
Dipankar Sarkar is a web and mobile entrepreneur. He has a Bachelor's degree in
Computer Science and Engineering from the Indian Institute of Technology, Delhi. He is a
rm believer in the Open source movement and has participated in the Google Summer
of Code, 2005-06 and 2006-07. He has conducted technical workshops for Windows
mobile and Python at various technical meet ups. He recently took part in the Startup
Leadership Program, Delhi Chapter.
He has worked with Slideshare LLC, one of the world's largest online presentation hosting
and sharing service as an early engineering employee. He has since then worked with
Mpower Mobile LLC, a mobile payment startup and Clickable LLC, a leading search engine
marketing startup. He was a co-founder at Kwippy, which was one of the top micro-blogging
sites. He is currently working in the social TV space and has co-founded Jaja.
This is his rst technical publication
I would like to thank my patient and long suffering wife, Maitrayee, for
putting up with my insane working hours and for being there for me
throughout. My mother and my sister, Rickta and Amrita, whose belief and
support sustains me. My in laws, Amal and Ruchira Roychoudhury, for
opening their homes and hearts to me so generously. Also to my father, the
late A. C. Sarkar, who co-authored the rst chapter of my life and without
whom none of this would have been possible.
I would also like to thank Usha, Hyacintha, Srimoyee, and Kavita from Packt
who made this opportunity possible and have been fantastic to work with.
I am deeply grateful to the technical reviewers whose insights have been
invaluable. Needless to say, errors, if any, are mine.