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)

link|improve this question

feedback

1 Answer

up vote 5 down vote accepted

Try: ServerTokens ProductOnly

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

link|improve this answer
Same server signature after apache restart :( – Znarkus Feb 8 '10 at 17:56
2  
Perhaps the ServerTokens directive is listed in one of the include files. "grep -Ri servertokens /etc/httpd/" – CarpeNoctem Feb 8 '10 at 23:42
Of course, genius! The server token was set in /etc/apache2/conf.d/security. Thank you! – Znarkus Feb 24 '10 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! ;) – CarpeNoctem Feb 24 '10 at 12:53
feedback

Your Answer

 
or
required, but never shown

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