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

Discovering the Linux filesystem

Linux-based operating systems have their files organized in a very specific way that follows more or less closely the long-established Filesystem Hierarchy Standard (FHS). According to the official FHS documentation, this standard enables:

  • Software to predict the location of installed files and directories
  • Users to predict the location of installed files and directories

Although the original standard specification was published in 1993, it is still used by modern distributions, but in a slightly revised version.

Directory structure

Unlike Microsoft Windows operating systems where all file paths begin with a drive letter (what happens if you have over twenty-six drives on your system?), FHS-based filesystems have a ...

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