Change Apache version string

darren kirby bulliver at badcomputer.org
Mon Feb 7 14:18:59 PST 2005


quoth the Pat Maddox:
> I've got mod_php installed as well as mod_jk, so whenever there's a
> 404 Apache displays
> Apache/2.0.52 (FreeBSD) PHP/4.3.10 mod_jk/1.2.6
>
> I'm not sure if I'm being overly paranoid, but I don't really like the
> fact that all that info gets displayed.  Is there any way I can change
> Apache's version string, like I can with any ftp or smtp daemon?

In your apache conf file change "ServerTokens" directive:

### Set to one of:  Full | OS | Minor | Minimal | Major | Prod
### where Full conveys the most information, and Prod the least.
ServerTokens Prod

-d
--
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050207/e0f970a1/attachment.bin


More information about the freebsd-questions mailing list