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:
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 reverse
On Wed, Mar 6, 2013 at 4:21 PM, Nce Rt nce...@yahoo.com 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
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
It's request_rec which represents http Request not Response. look into this
data structure for the content-type field.
From: Eric Covener cove...@gmail.com
To: modules-dev@httpd.apache.org; Nce Rt nce...@yahoo.com
Sent: Wednesday, March 6, 2013 2:50 PM
On Wed, Mar 6, 2013 at 6:34 PM, Nce Rt nce...@yahoo.com 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.