Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Images in Admin not Visible After Adding SSL


ADivotMaker

Recommended Posts

Yesterday I added SSL to my admin pages for extra security (I also have the admin directory password protected). Now, I'm not seeing any images (they have a red x). For example, if I click on Categories/Products, all the images are showing red x's. If I'm viewing my shop though, everything is fine. It's just in admin that I'm having the problem. If I right click on one of the images, here's what I see:

 

https://host243.ipowerweb.com/oscommerce/images/category_dvd_movies.gif

 

It should be:

 

https://host243.ipowerweb.com/~mysite/oscommerce/images/category_dvd_movies.gif

(I tested it and it works)....So, I just need to figure out how to add the "~mysite" to the SSL path right?

 

Here's my admin config file:

 

  define('HTTP_SERVER', 'https://host243.ipowerweb.com/~mysite'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://mysite.net');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/mysite/public_html/oscommerce/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/oscommerce/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/mysite/public_html/oscommerce/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/oscommerce/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/mysite/public_html/oscommerce/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Link to comment
Share on other sites

Ha! I figured it out! In the config file, here's what I did:

 

Changed:

 

  define('DIR_WS_CATALOG', '/oscommerce/'); // absolute path required
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 

To:

 

  define('DIR_WS_CATALOG', '/oscommerce/'); // absolute path required
 define('DIR_WS_CATALOG_IMAGES', 'https://host243.ipowerweb.com/~mysite/oscommerce/images/');

 

Not sure if that's the best way, but it seems to work!

Link to comment
Share on other sites

?define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

?

 

Just had a very quick look at your configure file - why is this line false when you have SSL ?

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

Just had a very quick look at your configure file - why is this line false when you have SSL ?

 

Charles

 

Hey Charles...Well, I read somewhere else on this board about enabling SSL for the admin portion and that step wasn't mentioned so I didn't bother with it. I enabled it and didn't notice a difference, so I left it off. Even with it off, my admin shows I'm protected by SSL...What does enabling it do since I'm showing SSL when I open my admin? Thanks.

Link to comment
Share on other sites

Hey Charles...Well, I read somewhere else on this board about enabling SSL for the admin portion and that step wasn't mentioned so I didn't bother with it.  I enabled it and didn't notice a difference, so I left it off.  Even with it off, my admin shows I'm protected by SSL...What does enabling it do since I'm showing SSL when I open my admin?  Thanks.

 

 

Your file which deserves a better look than I am presently able to give has no entry for https server - it has https set to false - etc - I think your problems which you have plastered stem from these omissions.

 

Furthermore - your opening question was about protecting admin - SSL does nothing in that department - that protection is all about .htaccess. (SSL is about protecting data transfer not access to directories and files)

 

If no one else can do it soon - I will take a more detailed look at your posted file and let you know what I think

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

Your file which deserves a better look than I am presently able to give has no entry for https server - it has https set to false - etc - I think your problems which you have plastered stem from these omissions.

 

Furthermore - your opening question was about protecting admin - SSL does nothing in that department - that protection is all about .htaccess. (SSL is about protecting data transfer not access to directories and files)

 

If no one else can do it soon - I will take a more detailed look at your posted file and let you know what I think

 

Charles

 

So, are you saying it's not necessary to to view admin through the ssl? that makes sense to me, but I wonder why they put that padlock viewer on the opening admin page.

Link to comment
Share on other sites

So, are you saying it's not necessary to to view admin through the ssl?

 

absolutely :D

 

charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

I would say that it is definatley necessary to view the admin via SSL. You are going to be looking through people's person information as well as their credit card information. It would be irresponsible to view this information without using SSL.

Link to comment
Share on other sites

I would say that it is definatley necessary to view the admin via SSL. You are going to be looking through people's person information as well as their credit card information. It would be irresponsible to view this information without using SSL.

 

 

advisable - not necessary :D else everyone running a store without SSL is doing the impossible.

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...