0
我已經配置了apache以滿足對tomcat的請求。以下是我的配置。Tomcat應用程序沒有響應,沒有日誌
<VirtualHost *:80>
ServerName ***
ServerAlias ***
ServerAlias ***
RewriteEngine on
RewriteCond %{HTTP_HOST} =***
RewriteRule (.*) https://***/ [R]
RewriteCond %{HTTP_HOST} =***
RewriteRule (.*) https://***/ [R]
RewriteCond %{HTTP_HOST} =***
RewriteRule (.*) https://***/ [R]
</VirtualHost>
<VirtualHost *:443>
ServerName ***
ServerAlias ***
ServerAlias ***
ProxyPass/ajp://localhost:8009/
ProxyPassReverse/ajp://localhost:8009/
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/***.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/***.key
SSLCACertificateFile /etc/pki/tls/certs/***.crt
</VirtualHost>
我收到以下錯誤在Apache日誌
[Sun Feb 26 23:28:28 2012] [error] (111)Connection refused: proxy: AJP: attempt to connect to 127.0.0.1:8009 (localhost) failed
[Sun Feb 26 23:28:28 2012] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Sun Feb 26 23:28:28 2012] [error] proxy: AJP: failed to make connection to backend: localhost
[Sun Feb 26 23:28:29 2012] [error] proxy: AJP: disabled connection for (localhost)
[Sun Feb 26 23:28:29 2012] [error] proxy: AJP: disabled connection for (localhost)
它的工作原理正確的一段時間後,突然我收到以下錯誤
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
當我試圖netstat -antup | grep 8009
命令我以下
tcp 1 0 ::1:40293 ::1:8009 CLOSE_WAIT 32434/httpd
tcp 1 0 ::1:40288 ::1:8009 CLOSE_WAIT 32430/httpd
tcp 1 0 ::1:40289 ::1:8009 CLOSE_WAIT 32429/httpd
tcp 1 0 ::1:40294 ::1:8009 CLOSE_WAIT 32622/httpd
tcp 1 0 ::1:40292 ::1:8009 CLOSE_WAIT 32435/httpd
tcp 1 0 ::1:40290 ::1:8009 CLOSE_WAIT 32436/httpd
tcp 1 0 ::1:40287 ::1:8009 CLOSE_WAIT 32433/httpd
我不知道我的問題在哪裏。與Apache的配置或與Tomcat的配置是它或者它是一個編碼的問題......我相信這是一個配置問題...請幫助我..
什麼是你的Tomcat配置偵聽的端口? – hovanessyan 2012-02-27 07:06:56
我的tomcat配置爲8080和8443用於SSL,我也有ajp'<連接器端口=「8009」協議=「AJP/1.3」redirectPort =「8443」/>' – 2012-02-27 07:21:05