hi,
I developed a module under Apache1.3 and now I'm trying to migrate it to Apache 2.0 (under win XP)
The Module doesn't want to load (thanks to the LoadModule directive) when the server starts. Here is the source code
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_core.h"
#include "http_protocol.h"
static handler_rec response_handlers [] =
{
{"response-handler", response_handler},
{NULL},
};
module MODULE_VAR_EXPORT filter_module =
{
STANDARD_MODULE_STUFF,
module_init,/* initializer */
NULL,/* per-directory config creater */
NULL,/* dir config merger - default is to override */
NULL,/* server config creator */
NULL,/* server config merger */
NULL,/* command table */
response_handlers,/* [9] content handlers */
NULL,/* [2] filename-to-URI translation */
NULL,/* [5] check/validate HTTP user_id */
NULL,/* [6] check HTTP user_id is valid *here* */
NULL,/* [4] check access by host address, etc. */
NULL,/* [7] MIME type checker/setter */
NULL,/* [8] fixups */
NULL,/* [10] logger */
NULL,/* [3] header parser */
NULL,/* child initialization */
NULL,/* child exit */
post_read_request,/* [1] post read_request handling */
};
int post_read_request(request_rec *r)
{
return DECLINED;
}
static int response_handler(request_rec *r)
{
return OK;
}
Do I need to change anything in this code, any new library to include in the project ?
I developed a module under Apache1.3 and now I'm trying to migrate it to Apache 2.0 (under win XP)
The Module doesn't want to load (thanks to the LoadModule directive) when the server starts. Here is the source code
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_core.h"
#include "http_protocol.h"
static handler_rec response_handlers [] =
{
{"response-handler", response_handler},
{NULL},
};
module MODULE_VAR_EXPORT filter_module =
{
STANDARD_MODULE_STUFF,
module_init,/* initializer */
NULL,/* per-directory config creater */
NULL,/* dir config merger - default is to override */
NULL,/* server config creator */
NULL,/* server config merger */
NULL,/* command table */
response_handlers,/* [9] content handlers */
NULL,/* [2] filename-to-URI translation */
NULL,/* [5] check/validate HTTP user_id */
NULL,/* [6] check HTTP user_id is valid *here* */
NULL,/* [4] check access by host address, etc. */
NULL,/* [7] MIME type checker/setter */
NULL,/* [8] fixups */
NULL,/* [10] logger */
NULL,/* [3] header parser */
NULL,/* child initialization */
NULL,/* child exit */
post_read_request,/* [1] post read_request handling */
};
int post_read_request(request_rec *r)
{
return DECLINED;
}
static int response_handler(request_rec *r)
{
return OK;
}
Do I need to change anything in this code, any new library to include in the project ?