Sunday, 24 November 2019

NGINX tutorial

      Introduction to NGINX
      Install NGINX in MAC
      Install NGINX on CentOS
      Install NGINX on ubuntu
      Exploring nginx configuration file
      configure to serve static pages from file system
      How to reload the configurations?
      How to stop NGINX?
      How to reopen log files?
      Location Blocks
      Prefix match
      Match exact uri
      Match Regular Expression
      Variables
      specific variables demo
      Map query parameters to variables
      Custom variables
      Conditionals support
      Redirect the request
      Rewrite the request internally
      try_files example
      try_files with $uri example
      Named Locations
      Error and Access log
      Specify error and access logs for specific requests
      Disable access log for specific requests
      Worker Processes
      worker_connections: Maximum number of connections opened by a worker process
      Maximum number of connections accepted by NGINX
      pid: Get process id of the nginx
      client_body_buffer_size: Set client body buffer size
      client_max_body_size: Maximum allowed payload size
      client_header_buffer_size: Set client header buffer size
      client_body_timeout: Specify time out to read client request body
      client_header_timeout: Specify time out to read client headers
      keepalive_timeout: Maximum time a connection is open for client
      send_timeout: Set timeout for transmitting response to the client
      Add response headers
      expires: Set Expires and Cache-Control headers
      Compress response payload
      Forward requests to respective servers

Previous                                                    Next                                                    Home

No comments:

Post a Comment