5

In Ubuntu 9.10 I can't get apache directive ServerTokens to work. My httpd.conf looks like below.

ServerName server.mydomain.com
ServerSignature Off
ServerTokens Prod

ServerName solved startup warnings, but ServerTokens doesn't take. Both Firebug and nmap reports Apache/2.2.12 (Ubuntu)

1 Answer 1

8

Try: ServerTokens ProductOnly

Probably goes without..but you will need to reload for changes to take effect.

5
  • Same server signature after apache restart :(
    – Znarkus
    Feb 8, 2010 at 17:56
  • 10
    Perhaps the ServerTokens directive is listed in one of the include files. "grep -Ri servertokens /etc/httpd/" Feb 8, 2010 at 23:42
  • 8
    Of course, genius! The server token was set in /etc/apache2/conf.d/security. Thank you!
    – Znarkus
    Feb 24, 2010 at 12:45
  • haha, I spent 3 hours one time trying to figure out why my ssl config for a vhost wasn't working. Include files are sneaky! ;) Feb 24, 2010 at 12:53
  • is this security directory or file exists in wampserver apache? @Znarkus
    – Omid
    Dec 18, 2016 at 0:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.