Thumbs require SSL connection

Found a bug? Tell us!!
Post Reply
PepijnVissers
Posts: 4
Joined: Thu Aug 02, 2007 8:56 pm

Thumbs require SSL connection

Post by PepijnVissers »

First, thumbs up, great weblog software.

I run serendipity over HTTP. After enabling HTTPS for administration, the frontpage is loaded over HTTP, except the thumbnails. They are loaded over HTTPS for some reason, which leads to ugly SSL warnings due to self-signed certificates.

GET requests for the thumbs show up in both apache and apache-ssl access logs. I don't think it's apache. Disabling SSL in admin does not solve the problem.

You can see for yourself @ http://www.zoefdehaas.nl

Any ideas appreciated!

TIA,
Pepijn
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Thumbs require SSL connection

Post by garvinhicking »

Hi!

That might happen because if you insert links over a HTTPS backend, in your entries it will references those links to https instead of http. You'll need to fix those link URLs manually frmo https:// to http:// in your entries.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PepijnVissers
Posts: 4
Joined: Thu Aug 02, 2007 8:56 pm

Post by PepijnVissers »

Garvin, thanks for your reply. The links inserted (and causing the trouble) reference to an uploaded thumbnail, so I only have relative paths there.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, on your URL i don't see any thumbnails loaded over https?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PepijnVissers
Posts: 4
Joined: Thu Aug 02, 2007 8:56 pm

Post by PepijnVissers »

So the page just loads completely over http? No SSL whatsoever?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Ah. I just looked at the source.

But if I view your HTTP-Headers, then if I request:

http://www.zoefdehaas.nl/uploads/second ... yThumb.png

your server forwards this request using a "Location" HTTP header to:

https://www.zoefdehaas.nl/uploads/secon ... yThumb.png

This shouldn't be caused by Serendipity, so do you know what's causing this? Maybe some custom .htaccess rules or some global server configuration?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PepijnVissers
Posts: 4
Joined: Thu Aug 02, 2007 8:56 pm

Post by PepijnVissers »

Found it: you were right. I had a long forgotten mod_rewrite in httpd.conf for LocationMatch "*upload*" -> https. My bad :shock: .

Thanks for your help, much appreciated!
Post Reply