The actual code is
#include "httpd.h"
#include "http_config.h"
module MODULE_VAR_EXPORT my_header_module;
static int my_header_fixup(request_rec *r) {
ap_table_set(r->headers_out, "X-My-Header", "this is my header");
return OK;
}
module MODULE_VAR_EXPORT my_header_module = {...
Hi,
i'm a newbie to apache. When i tried to compile a module given in the following link under the heading "Adding a custom header" i got the following error. How do i rectify the error ?
http://thomas.eibner.dk/apache/api.html
$ /usr/sbin/apxs -c my_mod.c -o my_mod.dll
gcc -DCYGWIN...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.