Difference between revisions of "Old sites setup SSL"
From GLMWiki
Line 4: | Line 4: | ||
RewriteCond %{HTTPS} !=on | RewriteCond %{HTTPS} !=on | ||
RewriteRule ^/?(.*) <nowiki>https://www.warmemorialhospital.org</nowiki>/$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> |
Revision as of 12:35, 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 );