我正在尝试在我的网站上设置自定义 503 错误页面。我正在使用这个 apache 配置。
# Exclude the Maintenance directory from being proxied
ProxyPass /Maintenance !
# ProxyPass other requests to the backend server
ProxyPass / https://local*********:***/
ProxyPassReverse / https://local********:***/
# Set the custom error document for 503 errors
ErrorDocument 503 /Maintenance/index.html
问题是自定义页面无法正确呈现其内容。由于index.html页面需要图像和CSS。
我在其他需要生成图像和 CSS 的页面上收到 503 错误。
[Mon Apr 22 05:15:11.279807 2024] [proxy:error] [pid 3662468:tid 22997273540352] (111)Connection refused: AH00957: https: attempt to connect to**************** failed
[Mon Apr 22 05:15:11.279841 2024] [proxy_http:error] [pid 3662468:tid 22997273540352] ************ AH01114: HTTP: failed to make connection to backend: ************
[Mon Apr 22 05:15:12.881465 2024] [proxy:error] [pid 3662468:tid 22997271439104] (111)Connection refused: AH00957: https: attempt to connect to*************** failed
[Mon Apr 22 05:15:12.881502 2024] [proxy_http:error] [pid 3662468:tid************] AH01114: HTTP: failed to make connection to backend: **********[![enter image description here][1]][1]