|  | Going to HTTPS via multiple domains
|
Original Message | Going to HTTPS via multiple domains Author lawrence on 02-12-2001 at 20:24 (EST) | We have multiple domains by which our site can be entered. Though most people use http://www.adventistsaffirm.org, we also have the .com and .net version of that name and .org/.com/.net of adventistaffirm.
Right now, only the first http I typed above gets transferred from display_cart.html to the https. We would like all domains to be allowed.
I did a search under "multiple domain" and "multiple" and "domain" in the board, but couldn't find any message about this problem.
Your help would be must appreciated. Thanks.
Lawrence Webmaster Adventists Affirm
|
|
| Messages In This Discussion |
1. RE: Going to HTTPS via multiple domains Author Bill Weiner on 02-13-2001 at 05:53 (EST) | | Actually, all you have to do is make sure that your uShopOrderButton applets have the "script_url" parameter pointing to the uShop CGI script on your secure server.
|
|
4. RE: Going to HTTPS via multiple domains Author Bill Weiner on 02-14-2001 at 06:22 (EST) | | Oh... your getting an "Illegal Referrer Page" error. Ok, that would be because you probably have the "Referral Page Validation" setting set to "YES". That "Referral Page Validation" setting (which can be found on the uShop Control Panel under "GENERAL SETTINGS - MISCELLANEOUS") specifies whether or not to validate the referrer at the exact point where the Java-side of uShop transfers control over to the CGI-side of uShop. So there are two options:
1) The easiest option is to just put that setting to "NO". Referral page validations will still be performed during all other actions with the uShop CGI script... just not at that first Java-to-CGI transfer point. This will allow you to post to the same uShop CGI script from all of your different domains.
2) Otherwise, if you still want the referral page validation performed at that Java-to-CGI point... and still allow your different domains to link to the same script, then there is a relatively basic modification that you can make to the script:
STEP 1: Make a backup of your current ushop-lib.pl script... just in case.
STEP 2: Open you "ushop-lib.pl" file with any text editor such as WordPad.
STEP 3: Do a search on the following line:
sub display_order_form
STEP 4: About 10 lines into that subroutine, you will see the following lines:
if ($settings[16] =~ /YES/i) { &validate_referral_page($store_url); }
Replace those lines with the following lines:
local ($ref_string,$domain2,$domain3); if ($settings[16] =~ /YES/i) { $domain2 = "http://www.adventistsaffirm.net/"; $domain3 = "http://www.adventistsaffirm.com/"; $ref_string = $ENV{'HTTP_REFERER'}; if ((!($ref_string =~ /$store_url/i)) && (!($ref_string =~ /$domain2/i)) && (!($ref_string =~ /$domain3/i))) { &missing_input("Illegal Referrer Page","The referring page did not meet security requirements."); } }
STEP 5: Save the file (as TEXT if your editor asks)... and then try it out!
|
|
|
|