livingstone123 Posted September 27, 2008 Share Posted September 27, 2008 Hi all i am a newbie. recently i installed miniBB forum in my private network. I can access it by typing its ip address (192.168.1.10) internally.......But when i try to access the site from my office through public IP by port forwarding. I can access only the home page of it and all other links are like http://192.168.1.10/index.php?action...orum=1&topic=1 So i cant access it ..is there any concept to change the links to public IP when accessing from it...... Like (http://PUBLIC_IP/index.php?action=vt...orum=1&topic=1) Link to comment https://forums.phpfreaks.com/topic/126059-how-to-access-internal-php-sitefrom-internet/ Share on other sites More sharing options...
Minase Posted September 27, 2008 Share Posted September 27, 2008 in miniBB ACP you will find domain name or something similar. change it to your real IP Link to comment https://forums.phpfreaks.com/topic/126059-how-to-access-internal-php-sitefrom-internet/#findComment-651857 Share on other sites More sharing options...
PFMaBiSmAd Posted September 27, 2008 Share Posted September 27, 2008 The $main_url setting is being used to form URL's. Since you don't have a domain name that your localhost responds to, you have apparently set this to be your local IP address. The easiest short term fix (the correct fix would be to get and use a domain name) would be to set $main_url to use $_SERVER['HTTP_HOST']. Try the following in your setup_options.php file - $main_url='http://' . $_SERVER['HTTP_HOST'] . '/forums'; Link to comment https://forums.phpfreaks.com/topic/126059-how-to-access-internal-php-sitefrom-internet/#findComment-651862 Share on other sites More sharing options...
livingstone123 Posted September 27, 2008 Author Share Posted September 27, 2008 ya i will try..... Link to comment https://forums.phpfreaks.com/topic/126059-how-to-access-internal-php-sitefrom-internet/#findComment-651865 Share on other sites More sharing options...
livingstone123 Posted September 27, 2008 Author Share Posted September 27, 2008 Wow it worked .....thanks a lot...... Link to comment https://forums.phpfreaks.com/topic/126059-how-to-access-internal-php-sitefrom-internet/#findComment-651868 Share on other sites More sharing options...
livingstone123 Posted September 27, 2008 Author Share Posted September 27, 2008 Thanks PFMaBiSmAd ur really a guru.......... Link to comment https://forums.phpfreaks.com/topic/126059-how-to-access-internal-php-sitefrom-internet/#findComment-651871 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.