Difference between revisions of "Old sites setup SSL"

From GLMWiki
Jump to: navigation, search
(Created page with "Setup .htaccess to always use ssl RewriteCond %{ENV:GLM_HOST_ID} PRODUCTION RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://www.warmemorialhospital.org/$1 [R,L]")
 
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
  RewriteCond %{ENV:GLM_HOST_ID} PRODUCTION
 
  RewriteCond %{ENV:GLM_HOST_ID} PRODUCTION
 
  RewriteCond %{HTTPS} !=on
 
  RewriteCond %{HTTPS} !=on
  RewriteRule ^/?(.*) https://www.warmemorialhospital.org/$1 [R,L]
+
  RewriteRule ^/?(.*) <nowiki>https://www.warmemorialhospital.org</nowiki>/$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
 +
 
 +
<pre>
 +
$curlOptions = array(
 +
    CURLOPT_URL            => IS_SUBMIT_URL,
 +
    CURLOPT_HEADER        => 0,
 +
    CURLOPT_RETURNTRANSFER => 1,
 +
    CURLOPT_SSL_VERIFYPEER => false,
 +
    CURLOPT_POSTFIELDS    => $fileData
 +
);
 +
</pre>
 +
 
 +
Look for refs to <nowiki>http://app.gaslightmedia.com</nowiki> in the Banner Toolkit directory.
 +
 
 +
Replace any toolbox page content with is0.gaslightmedia.com refs that are http
 +
 
 +
Test all areas in admin to make sure the secure lock stays on.
 +
Test all front pages to make sure secure lock is on.

Latest revision as of 12:38, 11 January 2019

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

Test all areas in admin to make sure the secure lock stays on. Test all front pages to make sure secure lock is on.