CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • SSL set by default on all Admin pages
Pages: [1]

Author Topic: SSL set by default on all Admin pages  (Read 1166 times)

KOS

  • Guest
SSL set by default on all Admin pages
August 11, 2008, 12:10:53 pm
I just uploaded our SSL and now I am having the same problems that are listed here: http://forum.civicrm.org/index.php/topic,1131.0.html - where all CiviCRM admin pages are being redirected to https and therefore causing an error.  I have reviewed the above mentioned post and opened the Config.PHP, but am unable to find this text:

 
         if ( defined( 'CIVICRM_UF_BASEURL' ) ) {
             $this->userFrameworkBaseURL = self::addTrailingSlash( CIVICRM_UF_BASEURL, '/' );
-       if ( isset( $_SERVER['HTTPS'] ) ) {
+       if ( isset( $_SERVER['HTTPS'] ) &&
+             strtolower( $_SERVER['HTTPS'] ) != 'off' ) {
          $this->userFrameworkBaseURL     = str_replace( 'http://', 'https://',
                             $this->userFrameworkBaseURL );

I am using CiviCRM version 1.8.11536 (and unable to update to the newest version of CiviCRM at this time). Is there different code that I should be using? Any help anyone could provide would be greatly appreciated. 

Thank you

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: SSL set by default on all Admin pages
August 11, 2008, 01:06:03 pm

i just checked the 1.8 codebase: http://svn.civicrm.org/civicrm/branches/v1.8/CRM/Core/Config.php

and if u search for HTTPS you'll see it quite a few times. If you dont have that, then you might be using a different version

that fix seemed to be for folks using microsoft IIS. Not sure if u r using that server

that said, i'd strongly encourage u to upgrade to 2.0 series.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • SSL set by default on all Admin pages

This forum was archived on 2017-11-26.