How do I find the version of Apache running without access to the command line?

前端 未结 11 2203
失恋的感觉
失恋的感觉 2020-12-04 12:37

I need to either find a file in which the version is encoded or a way of polling it across the web so it reveals its version. The server is running at a host who will not pr

11条回答
  •  萌比男神i
    2020-12-04 13:38

    Warning, some Apache servers do not always send their version number when using HEAD, like in this case:

    HTTP/1.1 200 OK
    Date: Fri, 03 Oct 2008 13:09:45 GMT
    Server: Apache
    X-Powered-By: PHP/5.2.6RC4-pl0-gentoo
    Set-Cookie: PHPSESSID=a97a60f86539b5502ad1109f6759585c; path=/
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Connection: close
    Content-Type: text/html
    
    
    
    Connection to host lost.
    

    If PHP is installed then indeed, just use the php info command:

    
    

提交回复
热议问题