student Posted April 10, 2005 Posted April 10, 2005 I am setting a new shop in localhost on a PC connecting a router (192.168.1.2). I would like to well test the shop before letting it go live. Can I use another PC in the same router (say, 192.168.1.3) to connect as custmers to test my shop? How to set thing up? Now when using other PC, I can see the text but all the graphic did not load, neither the SSL connection. Thanks. :o
Guest Posted April 10, 2005 Posted April 10, 2005 do u have an ssl connection locally? usually not . . . you will need to adjust your configure.php file to point to http://192.168.1.2 and then from 192.168.1.3 you would put in the browswer http://192.168.1.2 to view the site.
student Posted April 10, 2005 Author Posted April 10, 2005 do u have an ssl connection locally? usually not . . . you will need to adjust your configure.php file to point to http://192.168.1.2 and then from 192.168.1.3 you would put in the browswer http://192.168.1.2 to view the site. <{POST_SNAPBACK}> Thanks for answering. Yes, I got "https:// .. " in localhost. Can you be more specific how to adjust the configure.php? Is that only place to modify or more configure files need to be changed? I tried replacing "localhost" to "192.168.1.2" in every locations in the configure.php in both "catalog/inlcude/" and "catalog/admin/include". then I got "can not connect data server" error when using "http://192.168.1.2/catalog". As I said in my post, with the current (localhost) configure, I can connect 192.168.1.2 from 192.168.1.3 , but only see the index page (with text only, all the graphic icons did not load), any links on the index page did not work, not SSL neither. Any suggestions?? :o
seank123 Posted April 14, 2005 Posted April 14, 2005 My test server config.php file looks like this: // Define the webserver and path parameters// * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://10.174.15.2'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://10.174.15.2'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '10.174.15.2'); define('HTTPS_COOKIE_DOMAIN', '10.174.15.2'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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/'); Works OK on my server - it assumes that you have installed OSC in the default folder called 'catalog'. SSL works, but throws up an error (as the certificate is in our domain name, not the server IP address) Are you sure the SQL database settings are correct??
student Posted April 17, 2005 Author Posted April 17, 2005 My test server config.php file looks like this:Works OK on my server - it assumes that you have installed OSC in the default folder called 'catalog'. SSL works, but throws up an error (as the certificate is in our domain name, not the server IP address) Are you sure the SQL database settings are correct?? <{POST_SNAPBACK}> How to check the SQL setting? It is working fine in localhost. John
Recommended Posts
Archived
This topic is now archived and is closed to further replies.