I'm trying to deploy a squid server onto my EC2 Instnace that will act as a forward proxy for traffic. The service runs fine, but I get the following error consistently.
</head><body id=ERR_INVALID_URL> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr> <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="/">/</a></p> <blockquote id="error"> <p><b>Invalid URL</b></p> </blockquote> <p>Some aspect of the requested URL is incorrect.</p> <p>Some possible problems are:</p> <ul> <li><p>Missing or incorrect access protocol (should be <q>http://</q> or similar)</p></li> <li><p>Missing hostname</p></li> <li><p>Illegal double-escape in the URL-Path</p></li> <li><p>Illegal character in hostname; underscores are not allowed.</p></li> </ul> <p>Your cache administrator is <a href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_INVALID_URL&body=CacheHost%3A%20ip-10-127-148-113%0D%0AErrPage%3A%20ERR_INVALID_URL%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Mon,%2020%20Oct%202025%2009%3A48%3A21%20GMT%0D%0A%0D%0AClientIP%3A%2010.127.32.116%0D%0A%0D%0AHTTP%20Request%3A%0D%0A%0D%0A%0D%0A">webmaster</a>.</p> <br> </div> <hr> <div id="footer"> <p>Generated Mon, 20 Oct 2025 09:48:21 GMT by ip-10-127-148-113 (squid/6.13)</p> <!-- ERR_INVALID_URL --> </div> </body></html> I've no idea why I'm getting this. All I've done is change a single line in the squid.conf and restarted the service. It's status is good.
http_access allow all
ubuntu@ip-10-127-148-113:~$ sudo systemctl status squid ● squid.service - Squid Web Proxy Server Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; preset: enabled) Active: active (running) since Mon 2025-10-20 08:15:59 UTC; 1h 35min ago Docs: man:squid(8) Process: 3001 ExecStartPre=/usr/sbin/squid --foreground -z (code=exited, status=0/SUCCESS) Main PID: 3006 (squid) Tasks: 4 (limit: 9296) Memory: 17.7M (peak: 18.5M) CPU: 780ms CGroup: /system.slice/squid.service ├─3006 /usr/sbin/squid --foreground -sYC ├─3009 "(squid-1)" --kid squid-1 --foreground -sYC ├─3010 "(logfile-daemon)" /var/log/squid/access.log └─3011 "(pinger)" Oct 20 08:15:59 ip-10-127-148-113 squid[3009]: HTCP Disabled. Oct 20 08:15:59 ip-10-127-148-113 squid[3009]: Pinger socket opened on FD 14 Oct 20 08:15:59 ip-10-127-148-113 squid[3009]: Squid plugin modules loaded: 0 Oct 20 08:15:59 ip-10-127-148-113 squid[3009]: Adaptation support is off. Oct 20 08:15:59 ip-10-127-148-113 squid[3009]: Accepting HTTP Socket connections at conn3 local=[::]:3128 remote=[::] FD 12 flags=9 listening port: 3128 Oct 20 08:15:59 ip-10-127-148-113 systemd[1]: Started squid.service - Squid Web Proxy Server. Oct 20 08:16:00 ip-10-127-148-113 squid[3009]: storeLateRelease: released 0 objects Oct 20 09:28:51 ip-10-127-148-113 squid[3009]: Logfile: opening log stdio:/var/spool/squid/netdb.state Oct 20 09:28:51 ip-10-127-148-113 squid[3009]: Logfile: closing log stdio:/var/spool/squid/netdb.state Oct 20 09:28:51 ip-10-127-148-113 squid[3009]: NETDB state saved; 0 entries, 0 msec What gives? Why am I getting an invalid url? Is this a standard issue in Squid? Did I miss a part of the setup?