Jump to content

How to access internal PHP site..From internet


livingstone123

Recommended Posts

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)

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';

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.