I'm now trying to put 3 phrases in the URL and log in.
In all three, of course, the administrator's name and password have not changed.
Two succeeded, but one just didn't.
First URL is http://localhost/moodle. It can be logged in normally.
Second, instead of 'localhost', I put ipadress like http:// 〇〇〇〇.〇.〇.〇/moodle.
This is done after in the config .php where $CFG->wwwroot = 'http://localhost/moodle';
Instead of 'localhost', I put ipadress, save, and try logging in. It suceeded.
Third, finally, i coul not log in to moodle.
I have a hostname. This is the hostname of WindowsServer. In iis, when configuring bind to 'Default Web Site', the hostname is put in hostname. In config.php, I edited $CFG->wwwroot = 'http://hostname/moodle';. In the driver\etc\hosts file of WindowsServer, I also set the 'ipadress hostname' in last line. As a result, the first login screen in the ' http://hostname/moodle' appears without any problems. And next terrible thing happened. When I put localhost and ipadress in the url, I entered the admin ID and password, and pressed the login button, then I was logged in, but for some reason, I could not log in . Oh my gosh. If I change it to 'http://hostname/moodle' 'http://localhost/moodle' and restore the config .php and iis Default Web Site binding settings before editing, I can log in normally. Only when hostname is set as a URL, I cannot proceed from the login screen. What should I do? I'm really in trouble.