OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: SkeelKat on April 29, 2020, 08:26:13 AM

Title: OPNsense + Nginx Reverse Proxy + Custom 404,403 50x Error Pages
Post by: SkeelKat on April 29, 2020, 08:26:13 AM
I have  OPNsense 20.1.4-amd64 running with os-nginx 1.19 installed and working 100%
Certain HTTPS servers are restricted by IP ACL's, which also works great.

Is there anyway to configure a custom 403 Forbidden page when a HTTP/S requested is rejected based on the IP ACL?
Title: Re: OPNsense + Nginx Reverse Proxy + Custom 404,403 50x Error Pages
Post by: fabian on April 29, 2020, 09:39:00 PM
Maybe you can get that done by a custom include but it does not work with the web interface. You can see the include in the generated configuration.

See /usr/local/etc/nginx/nginx.conf