Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-6492

Support for mutli-domain setup's.

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.2
    • Fix Version/s: 4.3.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      At the moment the CIVICRM_UF_BASEURL is used to create most of the links and redirects. It's value is only determined once during installation and then set as a constant in the configuration file.

      When using multiple domain's to access one civicrm installation, only one of them can be fully supported. The others are redirected to the 'main' domain which implicitly logs the user out (as the session cookie is not set for this domain).

      I implemented a patch that (optionally and by default) tries to guess the right protocol/host/port combination and falls back to CIVICRM_UF_BASEURL if this is not possible.

      $config->userFrameworkBaseURL (which essentially is CIVICRM_UF_BASEURL) is used pretty often in the whole application. Most of the times this usages could be replaced by using either relative paths (some/page) or absolute paths (/some/page) instead of full URLs (http://server:port/some/page) .

        Attachments

        1. guess_baseurl.patch
          3 kB
          Roman Zimmermann
        2. guess_host.patch
          3 kB
          Roman Zimmermann

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              torotil Roman Zimmermann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified