[users@httpd] C module

2014-10-20 Thread Patton, Billy N
I’m new to Apache. I’ve gotten mod_perl, php, cgi and html to do my hello world. I’m now trying to get a “c” module to print a simple “hello world”. I know there is something very simple I’m missing. I’ve read explanations and examples till they all seem to say the same thing. I’ve copied

Re: [users@httpd] C module

2014-10-20 Thread Eric Covener
On Mon, Oct 20, 2014 at 7:58 AM, Patton, Billy N billy.pat...@h3net.com wrote: if (!r-handler || strcmp(r-handler, example-handler)) return (DECLINED); It's looking for ​SetHandler​ example-handler. -- Eric Covener cove...@gmail.com

Re: [users@httpd] C module

2014-10-20 Thread Issac Goldstand
On 20/10/2014 14:58, Patton, Billy N wrote: But when the actions you want to take are in the module, how do I call it? Since my file.c is called mod_example.c and it compiles/installs as mod_example.so Do I need a bogus file IE mod_example Then set a handle for mod_example where

Re: [users@httpd] C module

2014-10-20 Thread Patton, Billy N
Thanks, my hello world is now working :) On Oct 20, 2014, at 7:15 AM, Issac Goldstand mar...@beamartyr.net wrote: On 20/10/2014 14:58, Patton, Billy N wrote: But when the actions you want to take are in the module, how do I call it? Since my file.c is called mod_example.c and it

Re: [users@httpd] C module

2014-10-20 Thread Patton, Billy N
Thanks, my hello world is now working. On Oct 20, 2014, at 7:03 AM, Eric Covener cove...@gmail.commailto:cove...@gmail.com wrote: On Mon, Oct 20, 2014 at 7:58 AM, Patton, Billy N billy.pat...@h3net.commailto:billy.pat...@h3net.com wrote: if (!r-handler || strcmp(r-handler,