Greetings,
I'm running Apache/2.4.43 on FreeBSD 11.3-RELEASE-p7. I'm have this issue that I cannot seem to figure out. Even after Googling under the sun and searching various other forums, I cannot explain the reason for my issue.
My issue:
Anytime I do a remote test browse for a file or resource that doesn't exist on my Apache web server, the Apache error log that I have configured does not show any errors ("File does not exist", "Script not found or unable to stat," etc., etc...).
I have the error log specified in the httpd.conf config file as follows...
ErrorLog "/var/log/httpd-error.log"
In the httpd-access.log file, I do see my IP address that I browsed from, the timestamp, and the HTTP request method along with the server's response (400 or 404), etc....
50.*.8.*** - - [10/Apr/2020:15:44:33 +0000] "POST /cgi-bin/mainfunction.cgi HTTP/1.1" 400 226 "-" "-"
50.*.8.*** - - [10/Apr/2020:15:45:29 +0000] "POST /cgi-bin/mainfunction.cgi HTTP/1.1" 400 226 "-" "-"
50.*.8.*** - - [10/Apr/2020:15:46:16 +0000] "GET /tsutsfd HTTP/1.1" 400 226 "-" "-"
50.*.8.*** - - [10/Apr/2020:15:47:15 +0000] "GET /JDFADLSFJADf" 404 196 "-" "-"
The http-access.log is configured in the Apache as follows...
CustomLog "/var/log/httpd-access.log" combined
I've checked for duplicates or another path I might've been specifying for the ErrorLog but there's nothing else.
I even went as far as changing the 'LogLevel' in that directive do something other than "warn" and restarted Apache, but nothing is showing in the httpd-error.log file related to when I browse for non-existent content.
Fri Apr 10 15:43:03.552152 2020] [core:debug] [pid 58525] protocol.c(1444): [client 50.*.8.***:47286] AH00569: client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /cgi-bin/mainfunction.cgi
[Fri Apr 10 15:44:26.638599 2020] [core:info] [pid 58523] AH00096: removed PID file /var/run/httpd.pid (pid=58523)
[Fri Apr 10 15:44:26.638668 2020] [mpm_prefork:notice] [pid 58523] AH00169: caught SIGTERM, shutting down
[Fri Apr 10 15:44:26.814412 2020] [mpm_prefork:notice] [pid 58573] AH00163: Apache/2.4.43 (FreeBSD) configured -- resuming normal operations
[Fri Apr 10 15:44:26.820077 2020] [core:notice] [pid 58573] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Fri Apr 10 15:45:17.550982 2020] [mpm_prefork:notice] [pid 58573] AH00169: caught SIGTERM, shutting down
[Fri Apr 10 15:45:17.706588 2020] [mpm_prefork:notice] [pid 58613] AH00163: Apache/2.4.43 (FreeBSD) configured -- resuming normal operations
[Fri Apr 10 15:45:17.708654 2020] [core:notice] [pid 58613] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
As you can see from the httpd-error.log file, there are not errors corresponding to when I tried browsing for a file/resource that doesn't exist. However, you can where I had changed to the various logging levels and restarted Apache to no avail. Still nothing.
I would expect to see errors such as those mentioned about ("File does not exist", etc.) in the error log file. Am I missing something here? Or is Apache on FreeBSD functioning as designed?
Any assistance, pointers or guidance is appreciated.
Kind Regards,
--Cf
Carltonfsck
I'm running Apache/2.4.43 on FreeBSD 11.3-RELEASE-p7. I'm have this issue that I cannot seem to figure out. Even after Googling under the sun and searching various other forums, I cannot explain the reason for my issue.
My issue:
Anytime I do a remote test browse for a file or resource that doesn't exist on my Apache web server, the Apache error log that I have configured does not show any errors ("File does not exist", "Script not found or unable to stat," etc., etc...).
I have the error log specified in the httpd.conf config file as follows...
ErrorLog "/var/log/httpd-error.log"
In the httpd-access.log file, I do see my IP address that I browsed from, the timestamp, and the HTTP request method along with the server's response (400 or 404), etc....
50.*.8.*** - - [10/Apr/2020:15:44:33 +0000] "POST /cgi-bin/mainfunction.cgi HTTP/1.1" 400 226 "-" "-"
50.*.8.*** - - [10/Apr/2020:15:45:29 +0000] "POST /cgi-bin/mainfunction.cgi HTTP/1.1" 400 226 "-" "-"
50.*.8.*** - - [10/Apr/2020:15:46:16 +0000] "GET /tsutsfd HTTP/1.1" 400 226 "-" "-"
50.*.8.*** - - [10/Apr/2020:15:47:15 +0000] "GET /JDFADLSFJADf" 404 196 "-" "-"
The http-access.log is configured in the Apache as follows...
CustomLog "/var/log/httpd-access.log" combined
I've checked for duplicates or another path I might've been specifying for the ErrorLog but there's nothing else.
I even went as far as changing the 'LogLevel' in that directive do something other than "warn" and restarted Apache, but nothing is showing in the httpd-error.log file related to when I browse for non-existent content.
Fri Apr 10 15:43:03.552152 2020] [core:debug] [pid 58525] protocol.c(1444): [client 50.*.8.***:47286] AH00569: client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /cgi-bin/mainfunction.cgi
[Fri Apr 10 15:44:26.638599 2020] [core:info] [pid 58523] AH00096: removed PID file /var/run/httpd.pid (pid=58523)
[Fri Apr 10 15:44:26.638668 2020] [mpm_prefork:notice] [pid 58523] AH00169: caught SIGTERM, shutting down
[Fri Apr 10 15:44:26.814412 2020] [mpm_prefork:notice] [pid 58573] AH00163: Apache/2.4.43 (FreeBSD) configured -- resuming normal operations
[Fri Apr 10 15:44:26.820077 2020] [core:notice] [pid 58573] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
[Fri Apr 10 15:45:17.550982 2020] [mpm_prefork:notice] [pid 58573] AH00169: caught SIGTERM, shutting down
[Fri Apr 10 15:45:17.706588 2020] [mpm_prefork:notice] [pid 58613] AH00163: Apache/2.4.43 (FreeBSD) configured -- resuming normal operations
[Fri Apr 10 15:45:17.708654 2020] [core:notice] [pid 58613] AH00094: Command line: '/usr/local/sbin/httpd -D NOHTTPACCEPT'
As you can see from the httpd-error.log file, there are not errors corresponding to when I tried browsing for a file/resource that doesn't exist. However, you can where I had changed to the various logging levels and restarted Apache to no avail. Still nothing.
I would expect to see errors such as those mentioned about ("File does not exist", etc.) in the error log file. Am I missing something here? Or is Apache on FreeBSD functioning as designed?
Any assistance, pointers or guidance is appreciated.
Kind Regards,
--Cf
Carltonfsck