mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Update to work with http://box/cups/
This commit is contained in:
parent
26d8c620fd
commit
da1d147fc9
1 changed files with 11 additions and 0 deletions
|
@ -8,3 +8,14 @@ location ~ /print/(.*) {
|
||||||
sub_filter_types *;
|
sub_filter_types *;
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ /cups/(.*) {
|
||||||
|
proxy_pass http://127.0.0.1:631/$1;
|
||||||
|
proxy_set_header Host '127.0.0.1';
|
||||||
|
|
||||||
|
sub_filter ' href="/' ' href="/cups/';
|
||||||
|
sub_filter ' action="/' ' action="/cups/';
|
||||||
|
sub_filter ' src="/' ' src="/cups/';
|
||||||
|
sub_filter_types *;
|
||||||
|
sub_filter_once off;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue