Apache กำลังรับคำขอที่พอร์ต: 80 และส่งไปยัง Jetty ที่พอร์ต: 8080
The proxy server received an invalid response from an upstream server
The proxy server could not handle the request GET /.
ภาวะที่กลืนไม่เข้าคายไม่ออกของฉัน:ทุกอย่างทำงานได้ตามปกติ (การร้องขออย่างรวดเร็วไม่กี่วินาทีหรือการร้องขอความยาวไม่กี่สิบวินาทีมีการประมวลผลok ) ปัญหาเกิดขึ้นเมื่อการประมวลผลคำขอใช้เวลานาน (ไม่กี่นาที)
หากฉันส่งคำขอโดยตรงไปยังท่าเทียบเรือที่พอร์ต: 8080 คำขอจะได้รับการดำเนินการตกลง ดังนั้นปัญหาที่เกิดขึ้นคือมีแนวโน้มที่จะนั่งที่ไหนสักแห่งระหว่าง Apache และท่าเทียบเรือที่ฉันใช้mod_proxy วิธีแก้ปัญหานี้
ฉันได้ลองใช้ "เทคนิค" บางอย่างที่เกี่ยวข้องกับการตั้งค่า KeepAlive โดยไม่มีโชค นี่คือการกำหนดค่าปัจจุบันของฉันคำแนะนำใด ๆ
#keepalive Off                     ## I have tried this, does not help
#SetEnv force-proxy-request-1.0 1  ## I have tried this, does not help
#SetEnv proxy-nokeepalive 1        ## I have tried this, does not help
#SetEnv proxy-initial-not-pooled 1 ## I have tried this, does not help
KeepAlive 20                       ## I have tried this, does not help
KeepAliveTimeout 600               ## I have tried this, does not help
ProxyTimeout 600                   ## I have tried this, does not help
NameVirtualHost *:80
<VirtualHost _default_:80>
    ServerAdmin webmaster@mydomain.fi
    ServerName www.mydomain.fi
    ServerAlias mydomain.fi mydomain.com mydomain www.mydomain.com
    ProxyRequests On
    ProxyVia On
    <Proxy *>
            Order deny,allow
            Allow from all
    </Proxy>
    ProxyRequests Off
    ProxyPass / http://www.mydomain.fi:8080/ retry=1 acquire=3000 timeout=600
    ProxyPassReverse / http://www.mydomain.fi:8080/
    RewriteEngine On
    RewriteCond %{SERVER_NAME} !^www\.mydomain\.fi
    RewriteRule /(.*) http://www.mydomain.fi/$1 [redirect=301L]
    ErrorLog /var/log/apache2/error.log
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    CustomLog /var/log/apache2/access.log combined
    ServerSignature On
</VirtualHost>
นี่คือบันทึกการดีบักจากคำขอที่ล้มเหลว:
74.125.43.99 - - [29/Sep/2010:20:15:40 +0300] "GET /?wicket:bookmarkablePage=newWindow:com.mydomain.view.application.reports.SaveReportPage HTTP/1.1" 502 355 "https://www.mydomain.fi/?wicket:interface=:0:2:::" "Mozilla/5.0 (Windows; U; Windows NT 6.1; fi; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10"
[Wed Sep 29 20:20:40 2010] [error] [client 74.125.43.99] proxy: error reading status line from remote server www.mydomain.fi, referer: https://www.mydomain.fi/?wicket:interface=:0:2:::
[Wed Sep 29 20:20:40 2010] [error] [client 74.125.43.99] proxy: Error reading from remote server returned by /, referer: https://www.mydomain.fi/?wicket:interface=:0:2:::