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 »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • with SSL front-end pound, URL tracking fails to redirect to external site
Pages: [1]

Author Topic: with SSL front-end pound, URL tracking fails to redirect to external site  (Read 960 times)

daveatkins

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.41
  • PHP version: 5.2.10
with SSL front-end pound, URL tracking fails to redirect to external site
July 07, 2014, 04:01:05 am
I recently set up our web site to use pound (http://www.apsis.ch/pound) for serving SSL and redirecting all content to secure pages. Now, when I send a mass mailing, the URLs in the body of the email are sent out as https links like this:

https://www.ceeforum.org/sites/all/modules/civicrm/extern/url.php?u=2810&qid=50739

The external URL is "http://www.cee1.org/ar"

What happens is the external domain name is lost and, when the user clicks the https link above, they end up with

https://www.ceeforum.org/ar/

in the browser bar which fails as a 404 not found because it is attempting to load from the local site.

My configuration is currently still running non-secure apache on port 8080, so if I hit

http://www.ceeforum.org:8080/sites/all/modules/civicrm/extern/url.php?u=2810&qid=50739

this bypasses the SSL redirection and works properly

if I attempt to hit
http://www.ceeforum.org/sites/all/modules/civicrm/extern/url.php?u=2810&qid=50739

then this is redirected to https, so it has the same effect as the first URL above.

Is this a Civi problem or a pound problem? I am now thinking it through and suspecting the problem is that the hostname is being lost through the redirection between apache and pound, not Civi, but would appreciate any insight from people who have done similar configurations...

daveatkins

  • I post occasionally
  • **
  • Posts: 68
  • Karma: 2
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 6.28
  • MySQL version: 5.1.41
  • PHP version: 5.2.10
Solved: w/ SSL front-end pound, URL tracking fails to redirect to external site
July 09, 2014, 03:44:40 am
The problem is not with CiviCRM. Pound configuration needs to have the following:

        RewriteLocation 0

for listener settings

RewriteLocation 0|1|2
If 1 force Pound to change the Location: and Content-location: headers in responses. If they point to the back-end itself or to the listener (but with the wrong protocol) the response will be changed to show the virtual host in the request. Default: 1 (active). If the value is set to 2 only the back-end address is compared; this is useful for redirecting a request to an HTTPS listener on the same server as the HTTP listener.

#HashKey

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.5 & 4.6
  • CMS version: Drupal
  • MySQL version: 5.5.36-cll-lve
  • PHP version: 4.1.8
Re: with SSL front-end pound, URL tracking fails to redirect to external site
December 06, 2014, 11:56:59 pm
Hello,
I have exactly the same problem but I didn't understand how to fix ti... :( Can you give me more explanation ?
Regards,
#HashKey

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • with SSL front-end pound, URL tracking fails to redirect to external site

This forum was archived on 2017-11-26.