The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hide Apache Version

Discussion in 'EasyApache' started by matrix4495, Jul 27, 2012.

  1. matrix4495

    matrix4495 Member

    Joined:
    Mar 27, 2012
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi i know this topic might have been discuessed. but i am not able to find the topic.

    How to hide the apache version

    i tried /etc/init.d/apache2/httpd.conf

    it just shows up blank.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Edit this file:
    modsec2.user.conf
    Add this:
    SecServerSignature

    Change it to:
    SecServerSignature coldbeer

    (or whatever you like)
     
  3. matrix4495

    matrix4495 Member

    Joined:
    Mar 27, 2012
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    can you give me exact path of the file to edit please.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sure thing:
    /usr/local/apache/conf/modsec2.user.conf
     
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You'd have to have mod_security on the machine for this to work. If you don't have mod security, you could just go to WHM > Apache Configuration > Global Configuration and set Server Signature to Off, which it is by default.
     
Loading...

Share This Page