The Elearning Community • site refers to itself as ip not hostname
Page 1 of 1

site refers to itself as ip not hostname

Posted: Wed Jan 13, 2021 9:38 pm
Hey All,

I have installed and configured the forma lms 2.2.1 and it works very well - however I've run into an issue running it under https. some links are generated with the ip address (https://123.123.123.123/appLms....), and not the hostname (https://host.name.com/appLms....) causing tls errors (my certificate is named and not by ip).

is there a way to disable this, or debug it?

Re: site refers to itself as ip not hostname

Posted: Wed Jan 13, 2021 10:13 pm
by alfa24
It's not a forma issue.
It's probably a misconfiguration of your webserver.
Could you provide detail of what urls are generated with ip instead of hostname?

Re: site refers to itself as ip not hostname

Posted: Mon Feb 08, 2021 12:22 pm
by scubatricky
[email protected] wrote: Wed Jan 13, 2021 9:38 pm Hey All,

I have installed and configured the forma lms 2.2.1 and it works very well - however I've run into an issue running it under https. some links are generated with the ip address (https://123.123.123.123/appLms....), and not the hostname (https://host.name.com/appLms....) causing tls errors (my certificate is named and not by ip).

is there a way to disable this, or debug it?
Most likely this is a canonical issue with the server. If you're running Apache then you'll want to backup yout httpd.conf, check that mod_rewrite is enabled and added a rewrite rule for the ip address your accessing. It'll be .htaccess that 90% of the time is causing the problem.