Forumlar / Cotonti / Support / Local Network Connection Failure

diablo
#1 2012-03-14 21:20

im working on local network on my computer and when i try to access cotonti from other room via ip 192.168.1.103 i cant load the site. only text appears on screen with no css or images. but my joomla directory works perfectly. how can i fix it ?

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
Twiebie
#2 2012-03-14 21:37

Temporarily remove {HEADER_BASEHREF} from your header.tpl file.

Or set $cfg['mainurl'] = 'http://192.168.1.20/cotonti'; in config.php to the local IP of the machine that runs the webserver.

 

diablo
#3 2012-03-14 21:49

didnt knew about the first one thank you.
I was wondering if there was some other way without editing config file.

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
Trustmaster
#4 2012-03-15 07:12

Currently Cotonti relies on domain from $cfg['mainurl'] a lot. This could be changed in favor of currently requested host, but there still should be an option to default to mainurl because some sites would need that. There is a related issue in the tracker: #848.

May the Source be with you!