ngx_http_proxy_module
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ngx_http_proxy_module相关的知识,希望对你有一定的参考价值。
参考技术A proxy_bind address [transparent] | off; 从这个指定的地址转发到被代理的服务器proxy_buffer_size size;
proxy_buffering on | off;
proxy_buffers number size;
proxy_busy_buffers_size size;
proxy_cache zone | off;
proxy_cache_background_update on | off;
proxy_cache_bypass string ...;
proxy_cache_convert_head on | off;
proxy_cache_key string;
proxy_cache_lock on | off;
proxy_cache_lock_age time;
proxy_cache_lock_timeout time;
proxy_cache_max_range_offset number;
proxy_cache_methods GET | HEAD | POST ...;
proxy_cache_min_uses number;
proxy_cache_path path [levels=levels] [use_temp_path=on|off] keys_zone=name:size [inactive=time] [max_size=size] [min_free=size] [manager_files=number] [manager_sleep=time] [manager_threshold=time] [loader_files=number] [loader_sleep=time] [loader_threshold=time] [purger=on|off] [purger_files=number] [purger_sleep=time] [purger_threshold=time];
proxy_cache_purge string ...;
proxy_cache_revalidate on | off;
proxy_cache_use_stale error | timeout | invalid_header | updating | http_500 | http_502 | http_503 | http_504 | http_403 | http_404 | http_429 | off ...;
proxy_cache_valid [code ...] time;
proxy_connect_timeout time; 连接到被代理服务器的超时时间
proxy_cookie_domain off;
proxy_cookie_domain domain replacement;
proxy_cookie_flags off | cookie [flag ...];
proxy_cookie_path off;
proxy_cookie_path path replacement;
proxy_force_ranges on | off;
proxy_headers_hash_bucket_size size;
proxy_headers_hash_max_size size;
proxy_hide_header field;
proxy_http_version 1.0 | 1.1;
proxy_ignore_client_abort on | off;
proxy_ignore_headers field ...;
proxy_intercept_errors on | off;
proxy_limit_rate rate;
proxy_max_temp_file_size size;
proxy_method method;
proxy_next_upstream error | timeout | invalid_header | http_500 | http_502 | http_503 | http_504 | http_403 | http_404 | http_429 | non_idempotent | off ...;
proxy_next_upstream_timeout time;
proxy_next_upstream_tries number;
proxy_no_cache string ...;
proxy_pass URL;
roxy_pass_header field;
proxy_pass_request_body on | off;
proxy_pass_request_headers on | off;
proxy_read_timeout time;
proxy_redirect default;
proxy_redirect off;
proxy_redirect redirect replacement;
proxy_request_buffering on | off;
proxy_send_lowat size;
proxy_send_timeout time;
proxy_set_body value;
proxy_set_header field value;
proxy_socket_keepalive on | off;
proxy_ssl_certificate file;
proxy_ssl_certificate_key file;
proxy_ssl_ciphers ciphers;
proxy_ssl_conf_command command;
proxy_ssl_crl file;
proxy_ssl_name name;
proxy_ssl_password_file file;
proxy_ssl_protocols [SSLv2] [SSLv3] [TLSv1] [TLSv1.1] [TLSv1.2] [TLSv1.3];
proxy_ssl_server_name on | off;
proxy_ssl_session_reuse on | off;
proxy_ssl_trusted_certificate file;
proxy_ssl_verify on | off;
proxy_ssl_verify_depth number;
proxy_store on | off | string;
proxy_store_access users:permissions ...;
proxy_temp_file_write_size size;
proxy_temp_path path [level1 [level2 [level3]]];
以上是关于ngx_http_proxy_module的主要内容,如果未能解决你的问题,请参考以下文章