Request ServerVariables SERVER_NAME


Host name, DNS alias or IP address of the web server. This is not necesarily the computer name of the web server and it has nothing to do with the address that the request used. It is the configured name of the website.


Examples or localhost or

Common Tasks

Get name of website
Get address for website
         << Back