Welcome! Log In Create A New Profile

Advanced

RE: Reverse proxy with URLs replacement

Reinis Rozitis
June 19, 2023 02:26AM
> Is it possible to use Nginx as a proxy for another website, while also having the ability to replace absolute paths in CSS, JS, and HTML content?

One way for that is to use proxy http://nginx.org/en/docs/http/ngx_http_proxy_module.html + sub module http://nginx.org/en/docs/http/ngx_http_sub_module.html

The only caveat is that the sub module doesn't support compressed responses from backends so you need to switch it off by setting proxy_set_header Accept-Encoding "";

rr
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Reverse proxy with URLs replacement

Jose David Bravo A June 17, 2023 11:26AM

RE: Reverse proxy with URLs replacement

Reinis Rozitis June 19, 2023 02:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 192
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready