Skip to content
#

nginx

nginx logo

nginx is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server. Nginx was written with an explicit goal of provide high performance on sites with high traffic, so it can be used as a reverse proxy, load balancer and HTTP cache.

Here are 8,734 public repositories matching this topic...

jagerzhang
jagerzhang commented Nov 9, 2021

Issue description

比如Nginx自带的响应内容替换库可以替换局部内容:http://nginx.org/en/docs/http/ngx_http_sub_module.html

sub_filter '<a href="http://127.0.0.1:8080/'  '<a href="https://$host/';

比如还有个支持正则替换的库(印象中Openresty已默认支持):ngx_http_substitutions_filter_module,可以通过正则表达式来替换内容:

subs_filter_types text/html text/css text/xml;
subs_filter st(\d*).example.com $1.example.com ir;
subs_filter a.e

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed WAF in existence.

  • Updated Nov 22, 2021
  • C++
flagger

Created by Igor Sysoev

Released October 4, 2004

Repository
nginx/nginx
Website
nginx.org
Wikipedia
Wikipedia

Related Topics

nginx-cache nginx-plus nginx-proxy nginx-server nginx-unit