PDA

View Full Version : SSL working, Images not


ryanf
4-13-04, 05:21 PM
Hey, I am just trying to set up a shopping cart and thought I'd test out the SSL connection to see if was working. I was please to find that I got the lock on the browser and not annoying popup messages so at least that is working. But my pictures are not showing up. Not just ones that I have added, none of them are there. If you want to check it out, here is my store: abdulky.com (www.abdulky.com) Just click on checkout and you'll see what I mean. Here is my catalog/includes/configure.php file:


<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.abdulky.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://fmabdulky.secure.powweb.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.abdulky.com');
define('HTTPS_COOKIE_DOMAIN', 'https://fmabdulky.secure.powweb.com');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/www/a/b/abdulky.com/htdocs/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');


?>


Thanks for the help,
Ryan

BerksWebGuy
4-13-04, 05:25 PM
Looks like a permission issue...this is what I get when I go directly to the image:

Forbidden-403
You don't have permission to access /catalog/images/table_background_login.gif on this server.

Check out this thread HERE (http://forum.powweb.com/showthread.php?s=&threadid=27525)

ryanf
4-13-04, 05:27 PM
Yeah I just changed my database password because I accidently posted it in my above post since been edited. Now I can't log on. I changed the password in both of the configure.php files, where else do I have to do it?

ryanf
4-13-04, 05:37 PM
OK, I fixed my last post, I had to change my permissions so I could edit that file. But my first problem still exists. You can see my site now, it works.

stevel
4-13-04, 09:00 PM
First, you should have instead:


define('HTTPS_COOKIE_DOMAIN', 'fmabdulky.secure.powweb.com');


Second, it would appear that you have "anti-leech" code in a .htaccess. This is blocking the images in secure mode. I suggest you remove the anti-leech code - it causes more trouble than it's worth. (For example, I couldn't see ANY of your images until I turned off the "Privacy Manager" in Norton Internet Security, as it sends a blank referrer.)

ryanf
4-13-04, 09:10 PM
Hey taking off that anti leech thing worked great.

Thanks for the tip!

stevel
4-14-04, 09:39 AM
Be sure to fix the cookie domain. If you don't, customers will lose their shopping cart.

ryanf
4-14-04, 10:01 AM
I fixed that too but just curious as to when they would lost their cart? I logged of and on and it was still there. Went back to check out and back and it was still there. I couldn't seem to "lose it" and I was trying to since I heard of other people having that problem I wanted to make sure it was working right on mine.

Thanks

ryanf
4-14-04, 10:28 AM
I fixed that too but just curious as to when they would lost their cart? I logged of and on and it was still there. Went back to check out and back and it was still there. I couldn't seem to "lose it" and I was trying to since I heard of other people having that problem I wanted to make sure it was working right on mine.

Thanks

stevel
4-14-04, 10:52 AM
Hard to say... A lot depends on how the individual's browser handles cookies. I'm somewhat unclear as to how osC uses cookies in SSL mode, since I tend to get the session ID in my address when I go through the secure areas. But I have seen others report that having the cookie domain wrong can cause cart loss.