opnsense / plugins

OPNsense plugin collection
https://opnsense.org/
BSD 2-Clause "Simplified" License
810 stars 593 forks source link

os-OPNWAF redirect feature #4030

Open 0x646f6d opened 3 weeks ago

0x646f6d commented 3 weeks ago

Important notices Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe. We started using OPNWAF as a front-end webserver. However, we face certain limitations regarding redirects of web pages. Consider the following typical use cases:

All these are classic features which are usually implemented on the reverse proxy. It would be great to support this.

Describe the solution you'd like Such simple redirects could be implement with the Redirect directive. In the GUI I could imagine having another input field named Redirect and a dropdown to select the status. Of course, only either Remote destinations or Redirect can be set up. In the configuration it could be set up like in the last example of the docs:

<Location "/one">
    Redirect permanent "http://example.com/two"
</Location>

Describe alternatives you've considered none

Additional context Add any other context or screenshots about the feature request here.