Client navigation on in house Intranet Site failing.

Permalink 1 user found helpful
I am trying to setup an in house intranet site using concrete5. I am currently using WAMP Server. i have everything installed and working correctly, except for one issue. It is probably something stupid i am overlooking on my part, but here goes.

I can pull up the site on the server machine by going to
http://localhost/portal

( portal is what i named my install folder)

the ip address of the server is 192.168.1.74

when i go to a client machine out on my network and try to navigate to http://192.168.1.74/portal i get Internet explorer cannot display the webpage screen.

I can pull uphttp://192.168.1.74 ( apache page ) just fine.

any ideas of what may be causing this?
Thanks for any help that mat be offered.

 
mdzoidberg replied on at Permalink Best Answer Reply
mdzoidberg
Open up site.php under the config folder, lookup;

define('BASE_URL', 'http://localhost');


Change to:
define('BASE_URL','http://'.$_SERVER["HTTP_HOST"]);


That way you will always be able to access locally and remotely.

Cheers.
TheRealSean replied on at Permalink Reply
TheRealSean
Very nice tip, Thanks
tommyt61 replied on at Permalink Reply
that fixed it ... Thanks for the help.
mdzoidberg replied on at Permalink Reply
mdzoidberg
Glad to help, can you mark my answer? cheers.