[squid-users] Squid custom error pages and javascript/css url sources
Eliezer Croitoru
eliezer at ngtech.co.il
Wed Aug 16 15:25:01 UTC 2017
By this:
https://www.paulirish.com/2010/the-protocol-relative-url/
This should work:
<head>
<link rel="stylesheet" href="//%h/common/jquery.mobile-1.4.5.min.css">
<script src="//%h/common/jquery-1.11.3.min.js"></script>
<script src="//%h/common/jquery.mobile-1.4.5.min.js"></script>
----
Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer at ngtech.co.il
-----Original Message-----
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On Behalf Of Vieri
Sent: Wednesday, August 16, 2017 13:25
To: squid-users at lists.squid-cache.org
Subject: [squid-users] Squid custom error pages and javascript/css url sources
Hi,
I've created custom error pages with something like this in the header tag:
<head>
<link rel="stylesheet" href="http://%h/common/jquery.mobile-1.4.5.min.css">
<script src="http://%h/common/jquery-1.11.3.min.js"></script>
<script src="http://%h/common/jquery.mobile-1.4.5.min.js"></script>
The page displays fine when the client requested an http site.
However, for https sites the css and js files do not load.
What alternatives do I have? Should I always redirect with deny_info instead? Is there a "catch-all" for deny_info?
Thanks,
Vieri
_______________________________________________
squid-users mailing list
squid-users at lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
More information about the squid-users
mailing list