Nginx 反向代理
Nginx 反向代理
Nginx 反向代理
The ngx_http_proxy_module
module allows passing requests to another server.
Example Configuration
示例:
Nginx 缓存设置
示例:
Nginx 动态请求PHP
Example Configuration
示例一:
示例二:
其他
- 反向代理代理到新地址,浏览器地址栏显示原始地址:
参考文档:
- nginx HttpProxy modules:http://nginx.org/en/docs/http/ngx_http_proxy_module.html
- ngx_http_headers_module:http://nginx.org/en/docs/http/ngx_http_headers_module.html
- proxy_cache:http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path
- ngx_http_fastcgi_module:http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html
- fastcgi_cache:http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache