如何调试 Apache2 的 500 服务器错误?

如何调试 Apache2 的 500 服务器错误?

最近,每当我尝试通过互联网(SSL、DuckDNS、Apache2)访问我的家庭自动化系统时,我都会收到 500 错误。如果我通过 SSL 在本地访问我的家庭自动化系统,它就可以正常工作(https://本地IP:端口)。我还有另一个网页使用相同的设置(SSL、DuckDNS、Apache2),甚至在 Apache 中使用相同的 VirtualHost。奇怪的是,那个网页运行得很好。

我尝试检查 Apache 的端口 443 错误日志,但它让我毫无头绪。我尝试进行一些搜索,但我只找到“检查您的脚本,它们必须是可执行的”。我个人没有更改任何可能导致此问题出现的内容,但我怀疑 Apache 已通过 unattendedupgrades 更新,可能导致此问题。

我在下面附上了错误日志的一部分,该日志是在尝试从家庭自动化系统访问 JSON URL 命令后创建的。据我所知,第一个条目立即出现 500 错误,所有其他错误都是未找到错误,因为它正在尝试从其他页面加载资源(该页面正在运行,但需要不同的 URL)。

我该如何调试此问题?

节选自port_443_error.log

myIP - - [19/Dec/2019:18:59:50 +0100] "GET /plugins/clockpicker/assets/css/bootstrap.min.css HTTP/1.1" 403 3033 "https://myWebsite.duckdns.org/domoticz/json.htm?type=command&param=getlightswitches" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:50 +0100] "GET /misc/stylesheet.css HTTP/1.1" 200 4738 "https://myWebsite.duckdns.org/domoticz/json.htm?type=command&param=getlightswitches" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/favicon.ico?v=KmnbvPPwjy HTTP/1.1" 403 2457 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/favicon.ico?v=KmnbvPPwjy HTTP/1.1" 403 2457 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/favicon.ico?v=KmnbvPPwjy HTTP/1.1" 403 2457 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/manifest.json HTTP/1.1" 403 2457 "https://myWebsite.duckdns.org/domoticz/json.htm?type=command&param=getlightswitches" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/favicon.ico?v=KmnbvPPwjy HTTP/1.1" 403 3033 "https://myWebsite.duckdns.org/domoticz/json.htm?type=command&param=getlightswitches" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/favicon.ico?v=KmnbvPPwjy HTTP/1.1" 403 2457 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/favicon-32x32.png?v=KmnbvPPwjy HTTP/1.1" 403 2457 "https://myWebsite.duckdns.org/domoticz/json.htm?type=command&param=getlightswitches" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/favicon-16x16.png?v=KmnbvPPwjy HTTP/1.1" 403 2457 "https://myWebsite.duckdns.org/domoticz/json.htm?type=command&param=getlightswitches" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/favicon.ico?v=KmnbvPPwjy HTTP/1.1" 403 2457 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:18:59:51 +0100] "GET /icons_stuff/favicon.ico?v=KmnbvPPwjy HTTP/1.1" 403 2457 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.134 Safari/537.36 Vivaldi/2.5.1525.40"
myIP - - [19/Dec/2019:19:00:11 +0100] "-" 408 575 "-" "-"

相关内容