我遇到了實現自定義404錯誤頁面的問題。我的設置是一個前端apache 2.2.6代理請求,而不是靜態文件到後端應用服務器(apache 1.3.36)停止apache注入它自己404找不到頁面到自定義404錯誤頁面
當用戶請求一個不存在的頁面後端服務器。我確實收到了錯誤頁面,但不知何故,後端apache服務器也在錯誤頁面中注入了自己的404未找到頁面。
這裏是由阿帕奇注入找不到網頁:
Not Found
The requested URL /product/8jd4776 was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.36 Server at www.example.com Port 8888
任何想法,爲什麼發生這種情況?