lighttpd forum migration > Writing a new lighttpd plugin simlar at apache module

Posted by Nadir Nadir
on 26.03.2008 07:59
hello everybody,

I have recently build apache module for my application. my module is 
relatively simple.

I add in the configuration file of apache a location tag like this :

<Location /is/this>
SetHandler mod_mymodule
</Location>

After that I open browser and I type the the following Url 
http://localhost/is/this

The code of my module is now executed.

My first question is how I do the same thing in lighttpd ?

My second question it ' s about the code of My module, I want to recover 
a uri typed since the browser and parse it (this uri). How  I accede at 
the string that represents a uri ?

similar at (r-> uri) in apache, when we have request_rec * r;

My third question is I need to display in the browser a constants 
strings and variables string also, What 's the function that allows this 
and How I use this function.( Function similar at ap_rprintf for 
example).

Thanks

Nadir