Hi,
I have a C++ shared library with a lot of utile things and I built my
module against it.
I copied it into bin then in module folder but even so the server does not
find it.
What I am missing here?
The error is:
/home/xyz/indian/conf/httpd.conf: Cannot load modules/mod_xyz.so into
server: li
On 03/06/2013 09:30 PM, Nce Rt wrote:
> I could send 401 status code from a custom apache module. But how to send a
> custom entity message in the http body? It seems to override any entity with
> a standard messaging to the client.
>
set r->status to 401, print your message and return OK
With
On Wed, 6 Mar 2013 21:19:49 +0100
Somostetoi Kilato wrote:
> The error is:
>
> /home/xyz/indian/conf/httpd.conf: Cannot load modules/mod_xyz.so into
> server: libmod_xyzi.so: cannot open shared object file: No such file or
> directory
Most likely you have unresolved symbols in libmod_xyzi.so
(c
A custom handler which is registered to run first(APR_HOOK_FIRST) has these
fields null when processing http request:
r->content_type, r->parsed_uri.scheme
the http request on the wire has the content_type header set.
r->parsed_uri.path is not null though.
apache is configured as rever
On Wed, Mar 6, 2013 at 4:21 PM, Nce Rt wrote:
>
>
> A custom handler which is registered to run APR_HOOK_FIRST has these fields
> null when processing http request:
> r->content_type, r->parsed_uri.scheme
r->content_type is not related to any request header -- it's the
response content type
A custom handler which is registered to run first(APR_HOOK_FIRST) has these
fields null when processing http request:
r->content_type, r->parsed_uri.scheme wherer is a pointer to request_rec
the http request on the wire has the content_type header set.
r->parsed_uri.path is not null tho
It's request_rec which represents http Request not Response. look into this
data structure for the content-type field.
From: Eric Covener
To: [email protected]; Nce Rt
Sent: Wednesday, March 6, 2013 2:50 PM
Subject: Re: some key fields of request_r
On Wed, Mar 6, 2013 at 6:34 PM, Nce Rt wrote:
> It's request_rec which represents http Request not Response. look into this
> data structure for the content-type field.
That's not how the field is used. If you want to read a Content-Type
request header, read it from r->headers_in.
Probably not, because you will have to cater to the MPM - e.g. use shared
memory if a subsequent request comes into a different process.
I'd suggest using shared memory (there are apr routines to do that), and
that should guarantee that state will be shared between different threads
or processes.