m0rph Posted July 10, 2003 Share Posted July 10, 2003 i have set everything up to work on xp and iis. i can see everything fine useing http://localhost .... but when someone views from through my ip address the images are not displaying, i have noticed the links for images are looking for the localhost still. how can i change this so the images can be viewed externally? any help would be gratefully aprieciated. Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 Update catalog/includes/configure.php define('HTTP_SERVER', ''); To your hostname/ ip. Regards, Rob Link to comment Share on other sites More sharing options...
m0rph Posted July 10, 2003 Author Share Posted July 10, 2003 thanks for replying, unfortunatly i tried what you sugested and found i still couldnt view the images. Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 You said you have this server online, can you give me an URL? Link to comment Share on other sites More sharing options...
m0rph Posted July 10, 2003 Author Share Posted July 10, 2003 the only way i can let you look at it is by giving you my ip adress eg. http://myipadd/ if you private message or if it ok to pm you id rather give my ip that way than have it shown on here. Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 Sure, just send it. That's exactly what private msgs are for ;-) Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 OK, can you issue a grep -nR localhost /path/to/your/osc/catalog > find_localhost.txt and look over the resulting 'find_localhost.txt' to see where the stray localhost is defined? Or paste it into the forum and I'll have a look. Regards, Rob Link to comment Share on other sites More sharing options...
m0rph Posted July 10, 2003 Author Share Posted July 10, 2003 i would issue that command but sounds like a stupid question, how dow issue that command, what do use? im running iis not apache if that makes any difference. Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 Sorry about that, I assumed a *NIX box. The Windows translation of that command is roughly: do a find on all files in your catalog directory containing the text localhost and save the result to a file. Regards, Rob Link to comment Share on other sites More sharing options...
m0rph Posted July 10, 2003 Author Share Posted July 10, 2003 this is my configure.php in catalogincludes not sure if there are other places which would have localhost as im not sure how to search every .php page to find it. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/catalog/'); // absolute path required 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', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', 'D:'); define('DIR_FS_CATALOG', 'D:/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'xgidgets'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 I think you misunderstood my earlier reply: update define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'https://localhost'); to define('HTTP_SERVER', 'http://your.ip.address.or.host'); define('HTTPS_SERVER', 'https://your.ip.address.or.host'); Link to comment Share on other sites More sharing options...
m0rph Posted July 10, 2003 Author Share Posted July 10, 2003 sorry i must of miss understood, thanks for been so patient and helping me. Link to comment Share on other sites More sharing options...
Guest Posted July 10, 2003 Share Posted July 10, 2003 NP, glad to help Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.