タグ

ブックマーク / nginx.org (4)

  • Development guide | nginx documentation

    For general purposes, nginx code uses two integer types, ngx_int_t and ngx_uint_t, which are typedefs for intptr_t and uintptr_t respectively. Most functions in nginx return the following codes: NGX_OK — Operation succeeded. NGX_ERROR — Operation failed. NGX_AGAIN — Operation incomplete; call the function again. NGX_DECLINED — Operation rejected, for example, because it is disabled in the configur

    Development guide | nginx documentation
  • Module ngx_http_upstream_module

    Defines a group of servers. Servers can listen on different ports. In addition, servers listening on TCP and UNIX-domain sockets can be mixed. Example: upstream backend { server backend1.example.com weight=5; server 127.0.0.1:8080 max_fails=3 fail_timeout=30s; server unix:/tmp/backend3; server backup1.example.com backup; } By default, requests are distributed between the servers using a weighted r

    Module ngx_http_upstream_module
    fcicq
    fcicq 2016/11/17
    max_fails=0 for localhost upstream or backup? write two times. proxy_next_upstream error timeout (invalid_header non_idempotent) ...
  • Module ngx_stream_ssl_preread_module

    The ngx_stream_ssl_preread_module module (1.11.5) allows extracting information from the ClientHello message without terminating SSL/TLS, for example, the server name requested through SNI or protocols advertised in ALPN. This module is not built by default, it should be enabled with the --with-stream_ssl_preread_module configuration parameter. Selecting an upstream based on server name: map $ssl_

    Module ngx_stream_ssl_preread_module
    fcicq
    fcicq 2016/11/06
    sni based forwarding, ssl_preread on; proxy_pass $ssl_preread_server_name:443 or use map. nginx 1.11.5+. $ssl_preread_protocol in 1.15.2+ (see sslh to modify?) alpn_protocols (1.13.10+)
  • NginxHttpCoreModule

    Enables or disables the use of asynchronous file I/O (AIO) on FreeBSD and Linux: location /video/ { aio on; output_buffers 1 64k; } On FreeBSD, AIO can be used starting from FreeBSD 4.3. Prior to FreeBSD 11.0, AIO can either be linked statically into a kernel: options VFS_AIO or loaded dynamically as a kernel loadable module: kldload aio On Linux, AIO can be used starting from kernel version 2.6.2

    fcicq
    fcicq 2015/09/04
    location block: empty, = | ~ | ~* | ^~. listen fastopen,reuseport,proxy_protocol, limit_except
  • 1