Getting 404 Bad Gateway Error After Launching NI Web Server URL

Updated Sep 2, 2020

Issue Details

I am using NI Web Server Configuration to setup my web server but I am getting 404 bad gateway error everytime I run my server URI.
 

Solution

It can caused by many reasons but mainly, you need to ensure that the host name that you specify for generated URLs adheres to the naming convention for the valid DNS Domain name.
DNS names can contain only alphabetical characters (A-Z), numeric characters (0-9), the minus sign (-), and the period (.). Period characters are allowed only when they are used to delimit the components of domain style names.

DNS domain names cannot contain the following characters:
  • comma (,)
  • tilde (~)
  • colon (:)
  • exclamation point (!)
  • at sign (@)
  • number sign (#)
  • dollar sign ($)
  • percent (%)
  • caret (^)
  • ampersand (&)
  • apostrophe (')
  • period (.)
  • parentheses (())
  • braces ({})
  • underscore (_)
  • white space (blank)

Additional Information

More rules are:

  • All¬†characters preserve their case formatting except for ASCII characters.
  • The first character must be alphabetical or numeric.
  • The last character must not be a minus sign or a period.