Old sites setup SSL

From GLMWiki
Revision as of 12:37, 11 January 2019 by Kc8wxm (Talk | contribs)

Jump to: navigation, search

Setup .htaccess to always use ssl

RewriteCond %{ENV:GLM_HOST_ID} PRODUCTION
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://www.warmemorialhospital.org/$1 [R,L]

Update the BASE_URL part in setup.phtml and any other ref for http:// to https://

Add curlopt for verify peer to false for any curl calls

$curlOptions = array(
    CURLOPT_URL            => IS_SUBMIT_URL,
    CURLOPT_HEADER         => 0,
    CURLOPT_RETURNTRANSFER => 1,
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_POSTFIELDS     => $fileData
);

Look for refs to http://app.gaslightmedia.com in the Banner Toolkit directory.

Replace any toolbox page content with is0.gaslightmedia.com refs that are http