Httpd gibt 503 Service nicht verfügbar mit mod_proxy für Tomcat 8 zurück

Ich versuche zur Integration von Tomcat mit Apache. Mein Ziel ist es umleiten alle Anforderungen mit
http://localhost/myapp zu http://localhost:8080

Ich diese Anleitung befolgt: http://tomcat.apache.org/tomcat-8.0-doc/proxy-howto.html

Meine httpd.conf sieht wie folgt aus:

Include conf.modules.d/*.conf
LoadModule proxy_module  modules/mod_proxy.so

ProxyPass         /myapp  http://localhost:8080 retry=0 timeout=5
ProxyPassReverse  /myapp  http://localhost:8080

Meine server.xml im apache-tomcat sieht wie folgt aus:

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" proxyPort="80" />

Nun, wenn ich versuche die url http://localhost/myapp es gibt 503 Service Unavailable Fehler.

Tomcat und Apache laufen. Die URL http://localhost:8080 funktioniert einwandfrei.

Kann es ein Problem mit den Datei-Berechtigungen?

Für tomcat den Benutzer und die Gruppe sind root/root und für httpdder Benutzer und die Gruppe sind apache/apache

Bin ich etwas fehlt, oder mache ich es falsch?

Httpd-version 2.4.6 und Tomcat-version ist 8.0

Den httpd-error-logs:

[proxy:error] [pid 19905] (13)Permission denied: AH00957: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed

[proxy:error] [pid 19905] AH00959: ap_proxy_connect_backend disabling worker for (localhost) for 0s

[proxy_http:error] [pid 19905] [client ::1:51615] AH01114: HTTP: failed to make connection to backend: localhost

Gelöst!

Die Antwort ist hier: http://sysadminsjourney.com/content/2010/02/01/apache-modproxy-error-13permission-denied-error-rhel/

InformationsquelleAutor der Frage user2354302 | 2014-09-03

Schreibe einen Kommentar