Server host www.domain.com not allowed!

After upgrading from OJS 3.3.0.8 to OJS 3.3.0.10 everything passed well. But, now loading the website can be only with https://domain.com/ not via https://www.domain.com/. After loading with the old web address https://www.domain.com/ the webpage received 400 Bad Request and in error log file Server host "www.domain.com not allowed!
Where can I change allow hosts or from which links is it possible to access the site? How do I add that the domain is loaded with www, http, https …?
The most of links which are worked is our of function.
PHP is 7.4

Kind regards,
Lazar

Did you configure the allowed_hosts variable in config.inc.php ? For an example, see in config.TEMPLATE.inc.php. You can specify multiple domains in array.

1 Like

Hi @mpbraendle,

thank you for your fast response and answer. This is exactly what I try to find. In row allowed_hosts = ’ ’ I added all domains that I plan to use and now works very well.

Kind regards,
Lazar

1 Like