Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

a DYNDNS solution


zhulien

Recommended Posts

I had a similar problem which I have now resolved. As I saw quite a few threads in here relating to dyndns and none of them actually had a real solution listed.

 

There may be others, but if you setup your configure.php files refering to your dynamic DNS name (ie: zhulien.kicks-ass.net) which is MANDATORY if you want people in the outside world to view your pages, the images and admin tool won't work within your LAN or behind your firewall. Since it isn't possible to have two sets of configure.php files easily with two hostnames, setup an entery in your HOSTS file to point to your server from behind your LAN, eg:

 

(hosts file entry such as)

 

192.168.0.2 zhulien.kicks-ass.net

 

For me at least, I only need to maintain it from one or two computers so it isn't a problem to force my computers to look at this IP address when the pages refer to my dynamic DNS.

 

Seems to work fine.

Link to comment
Share on other sites

On further testing, I have discovered the backup path is incorrectly displayed as:

 

Backup Directory: /home/wwwroot//admin/backups/

 

I'll keep testing and post in here. Hopefully a 99.9% to 100% fix for DYNDNS users.

Link to comment
Share on other sites

The file manager shows paths as:

 

/home/wwwroot//catalog/images

 

FYI, my config files are currently (for catalogue):

 

define('HTTP_SERVER', 'http://zhulien.kicks-ass.net/catalog/'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'http://zhulien.kicks-ass.net/catalog/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'zhulien.kicks-ass.net');

define('HTTPS_COOKIE_DOMAIN', 'zhulien.kicks-ass.net');

 

 

and (for admin):

 

define('HTTP_SERVER', 'http://zhulien.kicks-ass.net/catalog'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 

 

oddly, I cannot put just the http://zhulien.kicks-ass.net in the server entries because it expects the 'catalog' folder not to be there.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...