Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configuring Admin link server


RyanSmith

Recommended Posts

Posted

I'm having trouble with the admin page's links. They all want to link back to the non-secure site, but I want them to link to the secure site.

 

I have traced much of this back to the function:

 

function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {

 

I switched this to

 

function tep_href_link($page = '', $parameters = '', $connection = 'SSL') {

 

but that kinda seems like a hack. And it's still not quite correct. It now links to the secure server but it adds HTTPS_SERVER to it like:

 

http://localhost/admin/HTTPS_SERVER/campers/admin/

 

My non-secure site is:

 

http://localhost:8080/campers/index.php

 

and my secure site is

catalog:

http://localhost:80/

admin:

http://localhost:80/admin

 

any suggestions?

 

Thanks

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Posted
I'm having trouble with the admin page's links.  They all want to link back to the non-secure site, but I want them to link to the secure site.

 

I have traced much of this back to the function:

 

  function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {

 

I switched this to

 

  function tep_href_link($page = '', $parameters = '', $connection = 'SSL') {

 

but that kinda seems like a hack.  And it's still not quite correct.  It now links to the secure server but it adds HTTPS_SERVER to it like:

 

http://localhost/admin/HTTPS_SERVER/campers/admin/

 

My non-secure site is:

 

http://localhost:8080/campers/index.php

 

and my secure site is

catalog:

http://localhost:80/

admin:

http://localhost:80/admin

 

any suggestions?

 

Thanks

 

your secure site should begin with https:// and port 443

 

check your configuration settings.

Treasurer MFC

Posted
your secure site should begin with https:// and port 443

 

check your configuration settings.

 

Opps, my SSL site is running through 443. I have been running throught my config settings, and messing with all of them. I have added two lines to the admin configure.pnp file:

 

define('ENABLE_SSL', 'true');

define('HTTPS_SERVER', 'https://localhost');

 

this got the main page, and most the links working right, however on the left column links, the category headers work fine (Configuration, Catalog, Modules, etc) but the sub links(my store, minimum values, etc) to those still want to link to the non-secure server. I traced this to the includes/boxes included files that explicity send NONSSL to the tep_href_link function

eg:

<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL')

 

Is there an easy way to fix this without having to change all this links, or do some sort of ugly hack???

 

Thanks

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Posted
Opps, my SSL site is running through 443.  I have been running throught my config settings, and messing with all of them.  I have added two lines to the admin configure.pnp file:

 

  define('ENABLE_SSL', 'true');

  define('HTTPS_SERVER', 'https://localhost');

 

this got the main page, and most the links working right, however on the left column links, the category headers work fine (Configuration, Catalog, Modules, etc)  but the sub links(my store, minimum values, etc)  to those still want to link to the non-secure server.  I traced this to the includes/boxes included files that explicity send NONSSL to the tep_href_link function

eg:

<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL')

 

Is there an easy way to fix this without having to change all this links, or do some sort of ugly hack???

 

Thanks

 

I assume you want the admin side to be ssl:

 

no hack needed, just change the first line in admin/includes/configure.php

from http:// to https://

 

C'est tout

Treasurer MFC

Posted
I assume you want the admin side to be ssl:

 

no hack needed, just change the first line in admin/includes/configure.php

from http:// to https://

 

C'est tout

 

Holy moly, it couldn't be that simple could it? Wow, I feel like an idiot. Thanks a lot. That solved my problem.

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Posted

Oh, one last problem: now in the admin, the images aren't appearing because they are trying to pull from the secure site using non-secure paths. Do I have to change something here too?

osCommerce is a great piece of software with wonderful contributions.

Spend some time in the contribution area. There are a lot of gems there.

Archived

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

×
×
  • Create New...