OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: MaDe on February 12, 2021, 05:00:07 PM

Title: ngnix plugin + proxy redirect
Post by: MaDe on February 12, 2021, 05:00:07 PM
Good day,

we use an Apache as reverse proxy but we want to migrate to OPNsense and using the ngnix as reverse proxy.
I need to know if the <proxy_redirect> is implemented in the nginx plugin as we are using the <ProxyPassReverse> in the Apache config a lot.

Thanks MaDe. 
Title: Re: ngnix plugin + proxy redirect
Post by: Fright on February 12, 2021, 05:57:22 PM
Hi
QuoteI need to know if the <proxy_redirect> is implemented in the nginx plugin
not via GUI but can be added via hook (will need to edit template file and put a file with custom directives)
Title: Re: ngnix plugin + proxy redirect
Post by: MaDe on February 16, 2021, 01:23:47 PM
Hi,
thanks for your reply.
So I have to follow this thread to get it working?
https://forum.opnsense.org/index.php?topic=19122.msg87600#msg87600
I assume when I update the nginx plugin, configuration is gone, correct?
Any other Ideas how I can resolve this issue:
change <example.com/folder1/folder2> to <example.com>
We want to show only the domain but not the folder and subfolder.
Thx,
MaDe
Title: Re: ngnix plugin + proxy redirect
Post by: Fright on February 16, 2021, 03:27:22 PM
Hi
Quotewhen I update the nginx plugin, configuration is gone, correct?
yes the template file may be overwritten during the update. will need to restore the hook string.
the .conf-file itself with additional directives will remain in place
Quotechange <example.com/folder1/folder2> to <example.com>
We want to show only the domain but not the folder and subfolder.
the task is not quite clear for me. but if it is necessary to remove part of the path from the "Location" header in server response, then this is a suitable directive imho