I figured out the issue for 2.0.54:
in the apache source edit http-2.0.54/server/core.c edit lines 2435 to 2443 to say:
Code:
static enum server_token_type ap_server_tokens = SrvTk_MINIMAL;
static apr_status_t reset_version(void *dummy)
{
version_locked = 0;
ap_server_tokens = SrvTk_MINIMAL;
server_version = NULL;
return APR_SUCCESS;
}
(The change is from SrvTk_FULL; -> MINIMAL on two lines)
and edit http-2.0.54/os/unix/os.h on line 24 to say:
Code:
#define PLATFORM "Win32"
(The change is "Unix" -> "Win32")
and edit http-2.0.54/include/ap_release.h on lines 32 to 43 to say:
Code:
#define AP_SERVER_BASEVENDOR "Microsoft Corp"
#define AP_SERVER_BASEPRODUCT "Microsoft-IIS"
#define AP_SERVER_MAJORVERSION "5"
#define AP_SERVER_MINORVERSION "0"
#define AP_SERVER_PATCHLEVEL "0"
#define AP_SERVER_MINORREVISION AP_SERVER_MAJORVERSION "." AP_SERVER_MINORVERSI\
ON
#define AP_SERVER_BASEREVISION AP_SERVER_MINORREVISION "." AP_SERVER_PATCHLEVE\
L
#define AP_SERVER_BASEVERSION AP_SERVER_BASEPRODUCT "/" AP_SERVER_BASEREVISION
#define AP_SERVER_VERSION AP_SERVER_BASEVERSION
#endif
(Lots of changes here, just copy it)
That will disgise you as IIS. If your httpd.conf server tokens are "Major", your server will have this as a token -> example: "Microsoft-IIS/5.0 Server at bitchfork.net Port 80"
cool hey? i realize that was not descriptive but make the files look like that, ./configure; make; make install and it will work.
Thanks anyways guys.