Welcome! Log In Create A New Profile

Advanced

How to use sub_filter directive for all files under location /app1 ?

Posted by bombxdev 
How to use sub_filter directive for all files under location /app1 ?
May 07, 2022 10:48PM
Hi there,

This is my nginx config

```
location /app1/ {
proxy_pass http://app1/

sub_filter 'action="/' 'action="/liff/';
sub_filter 'href="/' 'href="/liff/';
sub_filter 'src="/' 'src="/liff/';
sub_filter_once off;
}
```

My problem is only index.html replacing the url but I need to replace for all files under current directory and sub directory such as assest folder.
My goal is fixing the path affter proxy_pass under localtion correctly.

Anyone got the idea, please give me a suggestion to solve this.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 51
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready