SquidGuard error page on webserver
- 
 Hello, I would like to have the error page on other web server than the pfsense box. On the web server: - I have one Microsoft iis, installed php on it.
 I created a site "blocked-by-Proxy.lan.mydomain.com"
 I put sgerror.php in this site
 Modified default document to be sgerror.php on this site
 On the pfsense squidgurd gui: - On common ACL, I choose ext err page
 On redirect info, I enter blocked-by-Proxy.lan.mydomain.com
 Klick Save
 klick apply on general tab
 Wait for 10 minutes for it to apply
 Sometimes I get a blank page, sometimes I get a blank page with a string of commands. What am I doing wrong? 
- I have one Microsoft iis, installed php on it.
- 
 What am I doing wrong? Your PHP config is somehow broken. It's not processing the commands if you're seeing them displayed. Also, I believe that for this to work, the server must be HTTP only. No HTTPS unless you have a real trusted cert to go with it. I find it easier to just use the pfSense box for that. 
- 
 Oh now it´s working, I use this URL: https://blocked-by-Proxy.lan.mydomain.com/sgerror.php?url=403%20&msg=&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u And I have a certificate on my website. Working great now :) 
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
