vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Changing over to https (https://vborg.vbsupport.ru/showthread.php?t=327360)

Panzer Max 07-07-2019 10:18 PM

Changing over to https
 
1 Attachment(s)
So, finally started the fun of getting our site switched over to https. Forum is working, most of the rest of the site is getting the sacred padlock.

But the forum does have ONE image that is mysteriously showing up as not cooperating.

Quote:

An image with an insecure url of "http://www.subsim.com/radioroom/images/icons/icon1.png" was loaded on line: 742 of https://www.subsim.com/radioroom/index.php.
Ok, so it sound like maybe that one icon was hardcoded into a template or php file somewhere, god only knows why. I have searched all the templates for icon1.png and http://www.subsim.com.... nothing!

I've checked the Styles CSS and MainVar section... nada!

I've dug through the php files. Cannot find it.

So, the friendly folks at vBulletin suggested using a 301 redirect and that will work, but now I want clean up as much as I can, and I gots to know, just where can I find where vBull sets the "thread icons" ?>?

Edit: Wayne+Omnibus pointed me in the right direction, vBulletin Options/Thread Display Options

Dave 07-08-2019 11:20 AM

Tip: create a style replacement variable in your styles to replace http://www.subsim.com with https://www.subsim.com

Panzer Max 07-08-2019 04:41 PM

Thanks, Dave. Yes, we did that. It was that one remaining default icon setting, I could swear I went through all the VB settings, I don't know how I missed that one, it was pretty obvious.

In Omnibus 07-08-2019 06:34 PM

Quote:

Originally Posted by Panzer Max (Post 2599768)
Thanks, Dave. Yes, we did that. It was that one remaining default icon setting, I could swear I went through all the VB settings, I don't know how I missed that one, it was pretty obvious.

Like Wayne said in the other forum it's easy to miss. vB3.x wasn't exactly laid out with ease of use in mind. :)

final kaoss 07-08-2019 09:00 PM

In that case, add this to your headers

Code:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
More info: CSP: upgrade-insecure-requests - HTTP | MDN

To sum it up, if a asset can be served via SSL (https) and isn't, then adding this tag will force it to be served via SSL.

Panzer Max 07-08-2019 09:28 PM

1 Attachment(s)
Quote:

Originally Posted by final kaoss (Post 2599775)
In that case, add this to your headers

Code:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
More info: CSP: upgrade-insecure-requests - HTTP | MDN

To sum it up, if a asset can be served via SSL (https) and isn't, then adding this tag will force it to be served via SSL.

Ok, kaoss, I'm on it!

Quote:

Originally Posted by In Omnibus (Post 2599771)
Like Wayne said in the other forum it's easy to miss. vB3.x wasn't exactly laid out with ease of use in mind. :)

First let me thank you again! So nice to help.

I'm still shaking my head :p My first thought was to check the style templates with a search. Then we checked the StyleVars and CSS. Then I went through the various vBulletin Options, one at a time, looking for anything related to that icon, or anything with an http:// prefix. I must have skipped that one, and never looked back. I spent several hours checking php files, wow, it was so easy but I missed it!

kevinh 08-10-2019 12:14 AM

Quote:

Originally Posted by Panzer Max (Post 2599754)
So, finally started the fun of getting our site switched over to https.

Hi Panzer Max, would you mind briefly explaining the steps to switch a vBulletin site to https ?

snakes1100 08-10-2019 07:03 AM

1. Buy SSL Cert
2. Install on server.
3. Setup apache/nginx whatever your running to serve the site in SSL & force a 301 to https
4. Change forum URL to https in the admincp
5. Fix any issues related to images etc by using to dev console in your browser, which could be smilies, post icons etc.

Panzer Max 08-10-2019 12:24 PM

Quote:

Originally Posted by kevinh (Post 2600188)
Hi Panzer Max, would you mind briefly explaining the steps to switch a vBulletin site to https ?

Hi Kevin, in our case, our data center manager called and said he had to upgrade our php to a higher version for security. Not being sure our 3.8 forum would actually work on newer versions of php, we had been hanging on to an outdated version to keep 3.8 running. We don't know if there were compatibility errors with vB, but he said he went through the whole site and fixed a few php errors.

At some point in the php upgrade he installed the SSL certificates through cPanel.

This explains the nginx change snakes is referring to. I did not make this change, I assume the DC tech did this in conjunction with the SSL certificates, but I will need to confirm.

Our admin changed the htaccess file to force the redirect to https

Then I got the job of searching the templates for http://www.oursite.com and changing to https://www.oursite.com
I also checked all the php pages in the vB folders for any mention of http

Last, we have a team who have been going through all 1800 html and php pages on site to find and replace http://www.oursite.com with https://www.oursite.com

Then some spot checking with https://www.whynopadlock.com/

kevinh 10-29-2019 05:57 AM

Hi snakes1100 and Panzer Max, thanks for the advice and sorry about the late response, juggling too many things at the moment :(


All times are GMT. The time now is 07:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01038 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete