You are previewing Nginx HTTP Server.

Nginx HTTP Server

Cover of Nginx HTTP Server by Clement Nedelcu Published by Packt Publishing
  1. Nginx HTTP Server
    1. Nginx HTTP Server
    2. Credits
    3. About the Author
    4. About the Reviewers
    5. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
    6. 1. Preparing your Work Environment
      1. Setting up a terminal emulator
      2. Basic shell commands
      3. Discovering the Linux filesystem
      4. System administration tools
      5. Summary
    7. 2. Downloading and Installing Nginx
      1. Setting up the prerequisites
      2. Downloading Nginx
      3. Configure options
      4. Controlling the Nginx service
      5. Adding Nginx as a system service
      6. Summary
    8. 3. Basic Nginx Configuration
      1. Configuration file syntax
      2. Base module directives
      3. A configuration for your profile
      4. Testing your server
      5. Summary
    9. 4. HTTP Configuration
      1. HTTP Core module
      2. Module directives
      3. Module variables
      4. The Location block
      5. Summary
    10. 5. Module Configuration
      1. Rewrite module
      2. SSI module
      3. Additional modules
      4. Summary
    11. 6. PHP and Python with Nginx
      1. Introduction to FastCGI
      2. PHP with Nginx
      3. Python and Nginx
      4. Summary
    12. 7. Apache and Nginx Together
      1. Nginx as reverse proxy
      2. Nginx Proxy module
      3. Configuring Apache and Nginx
      4. Additional steps
      5. Summary
    13. 8. From Apache to Nginx
      1. Nginx versus Apache
      2. Porting your Apache configuration
      3. Rewrite rules
      4. Summary
    14. A. Directive Index
    15. B. Module Reference
      1. Access
      2. Addition*
      3. Auth_basic module
      4. Autoindex
      5. Browser
      6. Charset
      7. Core
      8. DAV*
      9. Empty GIF
      10. Events
      11. FastCGI
      12. FLV*
      13. Geo
      14. Geo IP*
      15. Google-perftools*
      16. Gzip
      17. Gzip Static*
      18. Headers
      19. HTTP Core
      20. Image Filter*
      21. Index
      22. Limit Requests
      23. Limit Zone
      24. Log
      25. Map
      26. Memcached
      27. Proxy
      28. Random index*
      29. Real IP*
      30. Referer
      31. Rewrite
      32. Secure Link*
      33. SSI
      34. SSL*
      35. Stub status*
      36. Substitution*
      37. Upstream
      38. User ID
      39. XSLT*
    16. C. Troubleshooting
      1. General tips on troubleshooting
O'Reilly logo

Controlling the Nginx service

At this stage, you should have successfully built and installed Nginx. The default location for the output files is /usr/local/nginx, so we will be basing future examples on this.

Daemons and services

The next step is obviously to execute Nginx. However, before doing so, it's important to understand the nature of this application. There are two types of computer applications those that require immediate user input thus running on the foreground and those that do not, thus running in the background. Nginx is of the latter type, often referred to as daemon. Daemon names usually come with a trailing 'd' and a couple of examples can be mentioned here httpd the HTTP server daemon, named the name server daemon, or crond ...

The best content for your career. Discover unlimited learning on demand for around $1/day.