Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

redirected to localhost


muppmat

Recommended Posts

Posted

Hello all.

I am trying to set up a webshop, but when i enter the url (http://www.example.com:1234/catalog) i get redirected to http://localhost/catalog

 

www.example.com resolves to 194.xxx.xxx.74

 

All other pages on the webserver execpt osecomemrse seems to work fine.

 

The connection goes thru a ssh tunnel with ip on the lisening box 194.xxx.xxx.74 and on the local side 192.168.0.100.

The ssh tunnel works prefectly for all other webpages, so i dont this its the problem here.

 

I have searched this forum and also looked thru some parts of the code (it is enourmos :) ), and found nothing that seemed to explain my problem.

 

Any ideas?

 

BR

Mikael

 

P.S.

 

Here is my config:

 

define('HTTP_SERVER', 'http://194.xxx.xxx.74:3003'); // eg, http://localhost - should not be

define('HTTPS_SERVER', 'https://194.xxx.xxx.74:3003'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', '194.145.248.74');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', 'catalog/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', 'catalog/');

define('DIR_WS_HTTPS_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', '/var/www/localhost/htdocs/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Posted

should this

 

define('ENABLE_SSL', false);

 

be this?

 

define('ENABLE_SSL', 'false');

 

regards

Regards

 

Mark A Reynolds

Posted
still same error :(

 

you do know that you have 2 config files

 

1 in catalog/includes config

 

and

 

1 in admin/includes config

 

 

And if that doesnt help using the admin config as a base set all of your paths in the catalog includes config to Absolute paths not relative

 

That could easily be your issue

 

Cheers

 

J

Posted

i have tried to do that, but with no diffirence. will continue to try.

can this be something regarding brower checking, spider checking, some type of ip checking?

Posted

The only reference in your file to localhost is define('DIR_FS_CATALOG', '/var/www/localhost/htdocs/catalog/'

 

Are you sure this is correct?

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Posted

yep, it is correct.

the problem is now solved.

 

it was apache2 that did some strange rewrite of the path, (ServerName directive) dunno why it just did it on this folder, but now it works.

 

Thanks for the help!

Archived

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

×
×
  • Create New...