Author Topic: SSL proxy  (Read 9764 times)

jvels

  • Beginner
  • *
  • Posts: 27
SSL proxy
« on: July 05, 2005, 02:21:31 am »
Hi

Im try to develop the PBS/ dankort payment. The pbs/dankort require a shared SSL or a SSL proxy.

In the template file i first have:
Code: [Select]
if( $_SERVER['SERVER_PORT'] == 443 ) {
$mosConfig_live_site = 'http://domain.dk';
}else{
$mosConfig_live_site = 'https://ssl.ditonlinebetalingssystem.dk/secure/secure.aspx/mydomain.dk';
}

The works fine, but did not understand why my shop was slow :( After have fumble with the code I see all things (pictures etc. was load  through the SSL proxy and my shop was slow.

Now I change it to:
Code: [Select]
if( $_SERVER['SERVER_PORT'] == 443 ) {
$mosConfig_live_site = 'https://ssl.ditonlinebetalingssystem.dk/secure/secure.aspx/mydomain.dk';
}else{
$mosConfig_live_site = 'http://domain.dk';
}

But now does it nok change the $mosConfig_live_site to the SSL adress :( Some ideas how to change $mosConfig_live_site when the pages was loaded by the SSL proxy ?

Soeren

  • Administrator
  • Sr. Member
  • *
  • Posts: 3106
  • VirtueMart Starter
    • virtuemart.net
Re: SSL proxy
« Reply #1 on: July 05, 2005, 14:01:42 pm »
Hello,

which gateway do you want to use? Usually you don't have to change your site settings, but the SSL proxy automatically adjusts all URLs for you (e.g. wannafind.dk does this).

ciao, Soeren
The future of eCommerce: VirtueMart & Joomla!
http://virtuemart.net