環(huán)境:阿帕奇2nanohttpd(網(wǎng)絡(luò)服務(wù)器(java))該站點(diǎn)本身并且一直運(yùn)行良好,我在數(shù)據(jù)庫(kù)中添加了很多條目,nanohttpd Web 服務(wù)器在某些端點(diǎn)上返回這些條目我發(fā)現(xiàn)這與返回的站點(diǎn)的長(zhǎng)度有關(guān),因?yàn)楫?dāng)我將條目從一種狀態(tài)移動(dòng)到另一種狀態(tài)時(shí),有很多條目的那個(gè)總是會(huì)給我這個(gè)錯(cuò)誤。我已經(jīng)環(huán)顧了一下,認(rèn)為這可能是一個(gè)超時(shí)問(wèn)題,但我已經(jīng)向我的虛擬主機(jī)添加了超時(shí),這個(gè)問(wèn)題仍然存在Proxy ErrorThe proxy server received an invalid response from an upstream server.The proxy server could not handle the request GET /fooReason: Error reading from remote serverApache/2.4.10 (Debian) Server at foo.foo.foo Port 443我當(dāng)前的 VirtualHost 文件:<IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /var/www/directory ServerName foo.foo.foo ServerAlias foo.foo.foo ProxyPass "/" "http://foo.com:8080/" ProxyPassReverse "/" "http://foo.com:8080/" ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Include /etc/path/options-ssl-apache.conf SSLCertificateFile /etc/path/foo.com-0001/fullchain.pem SSLCertificateKeyFile /etc/path/foo.com-0001/privkey.pem </VirtualHost></IfModule>我之前嘗試過(guò)的是在 ProxyPass 后面添加 timeout=x 和 connectiontimeout=x 但這似乎沒(méi)有幫助編輯:由于這里仍然沒(méi)有答案,因此還有更多信息,一旦符合條件,我將添加賞金。正如您在我的 VirtualHost 文件中看到的,我正在使用 Apache 反向代理為我的應(yīng)用程序啟用 SSL所以我的小 nanohttpd 服務(wù)器基本上返回一個(gè)非常簡(jiǎn)單的 html 頁(yè)面,其中每個(gè)數(shù)據(jù)庫(kù)條目都有一個(gè)表和一行。如果特定類別有超過(guò) 100 個(gè)條目,我將收到代理錯(cuò)誤消息。在這一點(diǎn)上,我非常確定它與超時(shí)有關(guān),但我瀏覽了很多帖子并嘗試將配置添加到我的并且(是的,每次更改后我都重新啟動(dòng)了 Apache2)到目前為止沒(méi)有任何效果??赡苁俏业?nanohttpd 服務(wù)器上缺少的東西嗎?一個(gè)簡(jiǎn)單的 Header 或 Cookie,我現(xiàn)在沒(méi)有發(fā)送這些。如果缺少任何必需的信息,請(qǐng)告訴我。
Apache2 代理錯(cuò)誤:從遠(yuǎn)程服務(wù)器讀取錯(cuò)誤
慕尼黑的夜晚無(wú)繁華
2022-11-02 17:18:25