[users@httpd] How to enable a module for each request?

2020-04-27 Thread Jeffrey Walton
Hi Everyone, I'm having trouble figuring out how to enable my module for all requests. The module is loading via /etc/httpd/conf.modules.d/00-base.conf. After it is loaded and registers the hook it is never called. Here is the register_hook function, which is called. static void

Re: [users@httpd] What is n in a hook function?

2020-04-27 Thread Jeffrey Walton
On Mon, Apr 27, 2020 at 12:01 PM Eric Covener wrote: > > On Mon, Apr 27, 2020 at 11:52 AM Jeffrey Walton wrote: > > > > I'm reading https://httpd.apache.org/docs/2.4/developer/hooks.html. It > > says to declare a hook function: > > > > AP_DECLARE_HOOK(int

[users@httpd] What is n in a hook function?

2020-04-27 Thread Jeffrey Walton
Hi Everyone, I'm reading https://httpd.apache.org/docs/2.4/developer/hooks.html. It says to declare a hook function: AP_DECLARE_HOOK(int, do_something, (request_rec *r, int n)) But it does not explain the parameters. I know what request_rec is, but I don't know what n is. What is n in the

[users@httpd] How to get the module_index for ap_log_rerror?

2020-04-26 Thread Jeffrey Walton
Hi Everyone, I'm trying to log a few errors in a Apache 2.4 module using ap_log_error and ap_log_rerror. I have access to the request_rec struct. One of the arguments to the functions is module_index. *

Re: [users@httpd] What is a request for dash ("-")?

2020-04-26 Thread Jeffrey Walton
On Sun, Apr 26, 2020 at 7:26 AM Yann Ylavic wrote: > > On Sun, Apr 26, 2020 at 3:43 AM Jeffrey Walton wrote: > > > > What is this request I see in the logs: > > > > 186.222.62.229 - - [25/Apr/2020:21:35:18 -0400] "-" 408 - > > 186.222.6

[users@httpd] What search permissions are missing from where?

2020-04-25 Thread Jeffrey Walton
Hi Everyone, I'm trying to configure a test server on CentOS 7. I'm catching this error in error_log: [Sun Apr 26 00:02:13.215014 2020] [core:error] [pid 14840] (13)Permission denied: [client 172.16.5.26:41746] AH00035: access to /index.html denied (filesystem path '/var/www/html/index.html')

[users@httpd] What is a request for dash ("-")?

2020-04-25 Thread Jeffrey Walton
Hi Everyone, My apologies for this lame question. I'm having trouble searching for it. What is this request I see in the logs: 186.222.62.229 - - [25/Apr/2020:21:35:18 -0400] "-" 408 - 186.222.62.229 - - [25/Apr/2020:21:35:18 -0400] "-" 408 - The reason I ask is, we have a MediaWiki