Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working when try to match script tag in html #25

Open
guorenxi opened this issue May 27, 2018 · 0 comments
Open

Not working when try to match script tag in html #25

guorenxi opened this issue May 27, 2018 · 0 comments

Comments

@guorenxi
Copy link

guorenxi commented May 27, 2018

The Text:

<script type='text/javascript' src='https://www.xxx.com/wp-content/plugins/slick-social-share-buttons/js/ga.social_tracking.js?ver=4.7.10'></script>

The Regex Expression:
<script.slick.>.*</script>

The Conf:

location /
{
#proxy_ssl_server_name on;
proxy_connect_timeout 60s;
proxy_read_timeout 5400s;
proxy_send_timeout 5400s;
proxy_pass http://xxx.net/;
proxy_ssl_verify off;
#proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host "xxx.net";
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Accept-Encoding '';
replace_filter '<script.slick.>.*</script>' '' g;
replace_filter_max_buffered_size 1024k;
}

Nginx Version nginx/1.14.0

Please help.

Thanks.

agentzh pushed a commit that referenced this issue Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant