Mixed content blocked

45 views
Skip to first unread message

Tuomo Saari

unread,
Oct 1, 2025, 4:24:26 PM (7 days ago) Oct 1
to ERDDAP
Hi,

I am installing a new instance of ERDDAP on my test server (v 2.28.1). For some reason, there is "mixed active content" (http and https), and the http content is blocked. For example, the style sheet (erddap2.css) gets blocked so the page doesn't look very good. See the image below. 

Which configurations make the links in the index.html start with "http" and not "https"? 
In my setup.xml, baseUrl starts with "https://", what else is required?
I have not had this issue before.

Thank you!

Best Regards,
Tuomo Saari

Capture.PNG

Christopher Olson

unread,
Oct 1, 2025, 7:30:47 PM (6 days ago) Oct 1
to Tuomo Saari, ERDDAP
Hi Tuomo,

Have you also included the parameter <baseHttpsUrl>https://...</baseHttpsUrl> in your setup.xml?

I had this same issue and in my case since I was using the docker deployment these two parameters were set as environment variables.  I'm not sure what your setup is but that's something to check as well.  Hope this helps.

Chris

--
You received this message because you are subscribed to the Google Groups "ERDDAP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erddap+un...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/erddap/0d4e1812-2c76-420d-9b0d-36cebbc5293en%40googlegroups.com.


--
Chris Olson (he/him)
Data & Products Developer
Regional Ocean Data Sharing Initiative (RODSI)
Pacific Islands Ocean Observing System (PacIOOS)


Chris John - NOAA Affiliate

unread,
Oct 2, 2025, 9:34:39 AM (6 days ago) Oct 2
to Christopher Olson, Tuomo Saari, ERDDAP
It is also worth checking how you are proxying and what your connector ports 8080 and 8443 look like (tomcat/conf/server.xml). If you could send that as well.

Thanks,

Christopher John (he/him)
NOAA Appointed Technical Director of ERDDAP™
Computer and Information Systems Manager, TSPi




Tuomo Saari

unread,
Oct 2, 2025, 11:26:43 AM (6 days ago) Oct 2
to Chris John - NOAA Affiliate, Christopher Olson, ERDDAP
Chris, John: thank you for your responses! 

I have pretty much copied (and modified the server name) the settings from another, working ERDDAP installation. That's why I'm scratching my head a little. Could be a typo somewhere, or I'm just blind to something obvious...

In setup.xml I have:

In server.xml (using non-default port because there's another Tomcat for THREDDS... again, this same config works on another server)
<Connector port="6060" protocol="HTTP/1.1"
           connectionTimeout="300000"
           relaxedQueryChars="[]|"
           redirectPort="6443" />

Apache2 site proxy config:
   ProxyRequests Off
   ProxyPreserveHost On
   ProxyPass /erddap http://localhost:6060/erddap
   ProxyPassReverse /erddap http://localhost:6060/erddap

...and the http -> https rewrite rule
  RewriteEngine On
  RewriteCond %{SERVER_NAME} =ocng-gcoos-tmp.artsci.tamu.edu
  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
I also tried:
  RewriteCond %{HTTPS} !=on
  RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

And I configure the SSL on apache2. 

... I will keep banging my head on the brickwall until I find something :) Appreciate any ideas if you still have some.


Thanks!

Tuomo Saari
 | Research Specialist II
Gulf of America Coastal Ocean Observing System (GCOOS)
Department of Oceanography | Texas A&M University
(979) 393-2480 | tuomo...@gcoos.org | tsa...@tamu.edu



On Thu, Oct 2, 2025 at 8:34 AM Chris John - NOAA Affiliate <chris...@noaa.gov> wrote:
It is also worth checking how you are proxying and what your connector ports 8080 and 8443 look like (tomcat/conf/server. xml). If you could send that as well. Thanks, Christopher John (he/him) NOAA Appointed Technical Director of ERDDAP™ Computer
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd

Chris John - NOAA Affiliate

unread,
Oct 2, 2025, 12:39:18 PM (6 days ago) Oct 2
to Tuomo Saari, Christopher Olson, ERDDAP
You could try setting <useHeadersForUrl> to false (or true, if it was already false- this is in setup.xml). This is a setting that can allow for certain complex setups to function, but it's possible we need to address something for this uncommon situation. If this does fix your problem, please let me know since we'll want to update the headers for url logic to address the issue.

I assume you've seen them, but you can check your configs against the relevant sections of documentation:

It may be useful to send more (or all) of your server.xml. Some of the surrounding context would help me make sure I understand your configuration.

Christopher John (he/him)
NOAA Appointed Technical Director of ERDDAP™
Computer and Information Systems Manager, TSPi



Tuomo Saari

unread,
Oct 2, 2025, 1:12:52 PM (6 days ago) Oct 2
to Chris John - NOAA Affiliate, Christopher Olson, ERDDAP
Hi Chris, 

Thank you very many! 

This worked: <useHeadersForUrl>false</useHeadersForUrl>.
Setup.xml did not originally have this line.

BR,
Tuomo

Tuomo Saari | Research Specialist II
Gulf of America Coastal Ocean Observing System (GCOOS)
Department of Oceanography | Texas A&M University
(979) 393-2480 | tuomo...@gcoos.org | tsa...@tamu.edu



On Thu, Oct 2, 2025 at 11:39 AM Chris John - NOAA Affiliate <chris...@noaa.gov> wrote:
You could try setting <useHeadersForUrl> to false (or true, if it was already false- this is in setup. xml). This is a setting that can allow for certain complex setups to function, but it's possible we need to address something for

felimon....@gmail.com

unread,
Oct 2, 2025, 3:18:40 PM (6 days ago) Oct 2
to Tuomo Saari, Chris John - NOAA Affiliate, Christopher Olson, ERDDAP

Thank you, folks, for helping Tuomo get this over the hump.


--
You received this message because you are subscribed to the Google Groups "ERDDAP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erddap+un...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/erddap/0d4e1812-2c76-420d-9b0d-36cebbc5293en%40googlegroups.com.


 

--

Chris Olson (he/him)

Data & Products Developer

Regional Ocean Data Sharing Initiative (RODSI)

Pacific Islands Ocean Observing System (PacIOOS)

 

 

--
You received this message because you are subscribed to the Google Groups "ERDDAP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erddap+un...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/erddap/CAK0CCGEr38sUXJUoTD8hdvXSgMVq_sxTBN8hcKyqGPSmF54RpA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "ERDDAP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erddap+un...@googlegroups.com.

image001.png
Reply all
Reply to author
Forward
0 new messages