How to check which web server is running on a domain

Sometimes we must know what web server is running on a particular domain. Usually web hosts should be able to tell a client this, but if the client is afraid to ask, there is a way to ask the web server directly for this information.

Just to clarify: the web server is the process that serves files (HTML, PHP, ASP, images, etc) from a remote machine to your local web browser. The most likely choices in this day and age (2017) are Apache, NGINX or IIS. The latter is used by Windows servers, and the two former are used by Linux servers. There are other web servers too, such as lighttpd, but they’re used less commonly.

By asking the web server for this information, we can tell exactly who’s serving those files.

How to ask the Web Server

Let’s open a Terminal or Command Line Prompt window and utilise the good old fashioned Telnet protocol. Replace yourserver.com with the actual domain in question:

This has opened a channel to the web server through which we can now send a command – much like a web browser would send a request for a file. Let’s send him this:

As a response, we may be getting something like this:

The response may take a few seconds, especially if this results in a timeout or a bad request like in our example. There may also be other text, perhaps some HTML code. The main info we were after is presented next to the word “Server”, in this case it’s an NGINX web server at work there.

An Apache web server would perhaps give us a response like this:

In this case we’re even being told which version web server and what operating system it’s running on.

And finally, for completion, an IIS web server may say something like this:

This web server appears to be running Microsoft IIS with ASP. We can assume the operating system to be most likely Windows Server.

Caveat

Note that the information we get back may be misleading though: on Plesk servers for example, BOTH Apache and NGINX can be used to serve a web page. In this scenario, the above test will return NGINX, even though the site is served by Apache first and only distributed by an NGINX proxy.

Jay is the CEO and founder of WP Hosting, a boutique style managed WordPress hosting and support service. He has been working with Plesk since version 9 and is a qualified Parallels Automation Professional. In his spare time he likes to develop iOS apps and WordPress plugins, or draw on tablet devices. He blogs about his coding journey at http://wpguru.co.uk and http://pinkstone.co.uk.

One thought on “How to check which web server is running on a domain

Add your voice!