ngnix plugin + proxy redirect

Started by MaDe, February 12, 2021, 05:00:07 PM

Previous topic - Next topic
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. 

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)

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

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