I can not access localhost except with (2.2.3)

I can not access localhost except with (2.2.3)

by Antonio Delgado -
Number of replies: 2

Hello
I installed moodle 2.2.3 but only if I access from localhost. I can not access from an IP (http:xxx.xxx.xx.xx).
I get the message:
Detected incorrect access to this server is only accessible through the address "http://localhost:8088/aula", sorry.
Please notify the server administrator.

How do I configure it?

Average of ratings: -
In reply to Antonio Delgado

Re: I can not access localhost except with (2.2.3)

by Iván Vázquez -

Hi Antonio,

Did you tried to modify the config.php file?. The variable is:

$CFG->wwwroot   = 'http://localhost/moodle';

Try to replace localhost with your IP or domain.

Bye.

In reply to Antonio Delgado

Re: I can not access localhost except with (2.2.3)

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Understanding this localhost vs IP address vs DNS name against the $CFG->wwwroot variable in the config.php file will be helpful in the long run. I tried documenting the connection here:
- http://docs.moodle.org/en/Installing_Moodle_on_Debian_based_distributions#Scope
- http://docs.moodle.org/en/Installing_Moodle_on_Debian_based_distributions#Run_the_install_script
Average of ratings: Useful (1)