Pages

Wednesday, October 23, 2013

Checking for HTTP

I often need to check what version of Apache HTTP server is running in our environment. I also need to check for what modules are installed. The examples are form a Solaris 10 server and can be applied to any UNIX based operating system, like Linux.

The command below is the basic command for checking the HTTP version.
man@earth> httpd -v

It is best to run the find command. This way you can find any instaces on HTTP as well as any embedded versions that may be hiding on the server.
root@earth> find / -name httpd -type f 2>/dev/null
/usr/local/apache2/bin/httpd

Then to check the version run the following command.
man@earth> /usr/local/apache2/bin/httpd -v
Server version: Apache/2.2.25 (Unix)
Server built: Jul 31 2013 23:39:37

Below is the command for checking what modules are installed.
man@earth> httpd -M


Other sites with info on this.
www.cyberciti.biz
nixcraft.com

Related posts
Version index

2 comments:

  1. The internet browsers understand the language of the HTTP listing so if it's not there in url the website may not recognize it.

    Thanks
    Silvester Norman

    Changing MAC Address

    ReplyDelete
  2. Thanks for posting on my blog. I think your missing the point. This post is for checking for the version of Apache HTTP web server installed on a server. This has nothing to do with web browsers. Your link also has nothing to do with this post.

    ReplyDelete