From: Andre Malo Whether or not you have preloaded an ISAPI extension, all
ISAPI extensions are governed by the same permissions and
- restrictions as CGI scripts. That is, Options
- ExecCGI must be set for the directory that contains the
- ISAPI .dll file.Options ExecCGI must be set for the
+ directory that contains the ISAPI .dll file.
Review the Additional Notes and the Programmer's Journal for additional details and clarification of the specific ISAPI support offered by - mod_isapi.
+mod_isapi.
Apache's ISAPI implementation conforms to all of the ISAPI
@@ -72,149 +71,148 @@
into the server and keep it loaded until memory usage is too
high, or unless configuration options are specified. Apache
currently loads and unloads the ISAPI extension each time it is
- requested, unless the ISAPICacheFile directive is specified.
+ requested, unless the ISAPICacheFile directive is specified.
This is inefficient, but Apache's memory model makes this the
most effective method. Many ISAPI modules are subtly
incompatible with the Apache server, and unloading these
modules helps to ensure the stability of the server.
Also, remember that while Apache supports ISAPI Extensions, - it does not support ISAPI Filters. Support for + it does not support ISAPI Filters. Support for filters may be added at a later date, but no support is planned at this time.
If you are programming Apache 2.0 mod_isapi
- modules, you must limit your calls to ServerSupportFunction to the
- following directives:
ServerSupportFunction
+ to the following directives:
HSE_REQ_SEND_URL_REDIRECT_RESPhttp://server/location).
+ HSE_REQ_SEND_URL/location).In their recent documentation, Microsoft appears to have
+ abandoned the distinction between the two
+ HSE_REQ_SEND_URL functions. Apache continues to treat
+ them as two distinct functions with different requirements
+ and behaviors.
HSE_REQ_SEND_RESPONSE_HEADERHSE_REQ_DONE_WITH_SESSIONHSE_REQ_MAP_URL_TO_PATHHSE_APPEND_LOG_PARAMETER\"%{isapi-parameter}n\" component in a
+ CustomLog
+ directive%q log component with the
+ ISAPIAppendLogToQuery
+ On directiveISAPIAppendLogToErrors On directiveThe first option, the %{isapi-parameter}n component,
+ is always available and preferred.
HSE_REQ_IS_KEEP_CONNHSE_REQ_SEND_RESPONSE_HEADER_EXfKeepConn
+ flag is ignored.HSE_REQ_IS_CONNECTEDApache returns FALSE to any unsupported call to - ServerSupportFunction, and sets the GetLastError value to - ERROR_INVALID_PARAMETER.
+Apache returns FALSE to any unsupported call to
+ ServerSupportFunction, and sets the
+ GetLastError value to
+ ERROR_INVALID_PARAMETER.
ReadClient retrieves the request body exceeding the initial - buffer (defined by ISAPIReadAheadBuffer). Based on the - ISAPIReadAheadBuffer setting (number of bytes to buffer prior - to calling the ISAPI handler) shorter requests are sent +
ReadClient retrieves the request body exceeding the
+ initial buffer (defined by ISAPIReadAheadBuffer). Based on the
+ ISAPIReadAheadBuffer setting (number of bytes
+ to buffer prior to calling the ISAPI handler) shorter requests are sent
complete to the extension when it is invoked. If the request is
- longer, the ISAPI extension must use ReadClient to retrieve the
- remaining request body.
ReadClient to
+ retrieve the remaining request body.
- WriteClient is supported, but only with the HSE_IO_SYNC flag - or no option flag (value of 0). Any other WriteClient request - will be rejected with a return value of FALSE, and a - GetLastError value of ERROR_INVALID_PARAMETER.
+WriteClient is supported, but only with the
+ HSE_IO_SYNC flag or no option flag (value of
+ 0). Any other WriteClient request
+ will be rejected with a return value of FALSE, and a
+ GetLastError value of
+ ERROR_INVALID_PARAMETER.
GetServerVariable is supported, although extended server +
GetServerVariable is supported, although extended server
variables do not exist (as defined by other servers.) All the
usual Apache CGI environment variables are available from
- GetServerVariable, as well as the ALL_HTTP and ALL_RAW
- values.
GetServerVariable, as well as the ALL_HTTP
+ and ALL_RAW values.
Apache 2.0 mod_isapi supports additional
features introduced in later versions of the ISAPI specification,
- as well as limited emulation of async I/O and the TransmitFile
- semantics. Apache also supports preloading ISAPI .dlls for
- performance, neither of which were not available under Apache 1.3
- mod_isapi.
TransmitFile semantics. Apache also supports preloading
+ ISAPI .dlls for performance, neither of which were not available under
+ Apache 1.3 mod_isapi.
| Description: - | Record HSE_APPEND_LOG_PARAMETER requests from ISAPI -extensions to the error log |
|---|---|
| Syntax: + | Record HSE_APPEND_LOG_PARAMETER requests from +ISAPI extensions to the error log |
| Syntax: | ISAPIAppendLogToErrors on|off |
| Default: | ISAPIAppendLogToErrors off |
| Context: | server config, virtual host, directory, .htaccess |
| Override: | FileInfo |
| Status: | Base |
| Module: | mod_isapi |
Record HSE_APPEND_LOG_PARAMETER requests from ISAPI +
Record HSE_APPEND_LOG_PARAMETER requests from ISAPI
extensions to the server error log.
| Description: - | Record HSE_APPEND_LOG_PARAMETER requests from ISAPI -extensions to the query field |
|---|---|
| Syntax: + | Record HSE_APPEND_LOG_PARAMETER requests from +ISAPI extensions to the query field |
| Syntax: | ISAPIAppendLogToQuery on|off |
| Default: | ISAPIAppendLogToQuery on |
| Context: | server config, virtual host, directory, .htaccess |
| Override: | FileInfo |
| Status: | Base |
| Module: | mod_isapi |
Record HSE_APPEND_LOG_PARAMETER requests from ISAPI - extensions to the query field (appended to the CustomLog %q +
Record HSE_APPEND_LOG_PARAMETER requests from ISAPI
+ extensions to the query field (appended to the CustomLog %q
component).
| Description: | ISAPI .dll files to be loaded at startup |
|---|---|
| Syntax: - | ISAPICacheFile file-path [file-path] ... |
| Context: + | ISAPICacheFile file-path [file-path]
+... |
| Context: | server config, virtual host |
| Status: | Base |
| Module: | mod_isapi |
| Description: - | Fake asynchronous support for isapi callbacks |
|---|---|
| Syntax: + | Fake asynchronous support for ISAPI callbacks |
| Syntax: | ISAPIFakeAsync on|off |
| Default: | ISAPIFakeAsync off |
| Context: | server config, virtual host, directory, .htaccess |
| Override: | FileInfo |
| Status: | Base |
| Module: | mod_isapi |
While set to on, asynchronous support for isapi callbacks is +
While set to on, asynchronous support for ISAPI callbacks is simulated.