[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.62.229 - - [25/Apr/2020:21:35:18 -0400] "-" 408 - > > If

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

2020-04-26 Thread Yann Ylavic
Hi, 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.62.229 - - [25/Apr/2020:21:35:18 -0400] "-" 408 - If you are using the default LogFormat (i.e. "common"), the "-"

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

2020-04-26 Thread Yann Ylavic
On Sun, Apr 26, 2020 at 6:17 AM Jeffrey Walton wrote: > > As far as I can tell, the search permissions are present. Apache has > access to the file: > > # ls -Al /var > ... > drwxr-xr-x. 4 root apache 33 Apr 26 00:00 www > # ls -Al /var/www/ > ... > drwxr-xr-x. 2 root apache 24 Apr 21 11:20

Re: [users@httpd] Only allow reverse proxy traffic with mod_remoteip

2020-04-26 Thread baptx
Is there a way to display an error with a different message than the 403 Forbidden page configured with "ErrorDocument 403"? This would improve the privacy, otherwise if a website displays a 403 error on an admin login page restricted by IP address, someone trying to bypass the reverse proxy will