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
/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
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