Please HELP with request_rec struct of Apache API

Please HELP with request_rec struct of Apache API

Post by Bruno Boettch » Sat, 12 Oct 1996 04:00:00



hello,

i already posted that question but with no response since now :-(

the problem i have is the following:
i am modificating the counter module of the apache server, to make it
handle explicit and implicit adresses the same way ( directory/ and
directory/index.html.

In the module i parse the request_rec->uri string for the ending '/' and
repaces it with '/index.html'. Concerning the counting this works, but now
the url that appears in my browser is quite strange: a slash is appended to
the index.html i appended, making thus further relative referencing
impossible, and more annoying the page doesn't show the value of the
counter, despite the fact that the counter registrated a hit...

So somewhere in that struct is stored the state of that URL, where is it,
how can i stop automatic name expansion? I hope that when the URL is
recognized as normal page (explicit naming) then the value of the counter
will be passed to the page...

--
ciao

==============================================================

 
 
 

1. Apache1.2.5: adding to struct request_rec?

I am beginning to wonder if I could add some extra per-request data to the
end of the request_rec structure in httpd.h. Given that apache is modular,
I am sure that there should be a better way, so that I only touch one
particular module. Could someone please point me towards the the right bit
of doumentation or FAQ.

Thanks in advance.

Chris Ritson
--

PHONE: +44 191 222 8175            Department of Computing Science,
FAX  : +44 191 222 8232            University of Newcastle upon Tyne,
ROOM : 618 "The Mill"              United Kingdom NE1 7RU.

2. Surround Sound

3. HELP: request_rec data type in Apache-cgi-bin's

4. Gdk Message - Need Help

5. HELP ! Apache : request_rec->content_type IS NULL !

6. MS chief lashes out at German Free Software petition

7. Apache request_rec->request_config/per_dir_config

8. DPMI in dosemu

9. Access request_rec from a connection filter in Apache 2.0

10. Apache, successful subrequests, ap_sub_req_lookup_uri and request_rec?

11. Pointer to a struct within an array Help Please

12. Please help with process accounting struct

13. Apache C-API: Obtaining user/password in Apache module