I am currently trying to develop a small Apache module which needs to retrieve the request's document root (as defined in the server configuration).
I had a look at httpd.h
to see if I could find this information somewhere in the data structures (request_rec
, server_rec
) but I couldn't find anything like it.
Is it possible to retrieve the request's document root from an Apache module?