FAIL: server_name is set incorrectly for your webserver

Hi all,

It appears I have an issue with the server after switching the address from an IP to actual domain. The validate.php gives me:

FAIL: server_name is set incorrectly for your webserver, update your webserver config. example-dev.com parse failure (/librenms/validate/results)

FIX:
server_name example-dev.com;

I have applied the fix (well, I did that as a configuration step) in my NGINX conf file. No luck. (Did a restart of nginx, php and mysql). I also tried with base_url and with APP_url values as well as with /etc/hosts change but it still gives me the error.

It is urgent to fix this as the application refuses to create an API token until it is resolved :confused:

Did anyone have a similar issue and managed to fix it? What is the solution, please? I did have a look around the community forum and generally on the internet, did not see any resolved cases that worked for this scenario

You must have a configuration error somewhere, but you didn’t provide any evidence (configuration files, etc).

Like Tozz said it’s hard to answer without more info.
Did you change to server_name for both http and https(if you’re using both of course)?

Not sure if this setting can cause that error-message but does the “LibreNMS hostname” and/or more likely “Specific URL” match the new hostname under the System → Server settings?

Can be closed. It was simply a misconfiguration in Global Settings → Server → Specific URL which needed https:// in front of example.com/ .

Thanks guys

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.