Wie kann man alte Apache2.2-Konfigurationsdateien aktualisieren, um mit Apache2.4 zu arbeiten?

468
zig zag

Ich habe einen alten Python-Spieleserver, der unter Ubuntu 14.04 in Verbindung mit einem JavaScript-Spieleclient ausgeführt wird. Der Client arbeitete ursprünglich mit Apache2.2 unter Ubuntu 12.04, aber nach dem Upgrade auf Ubuntu 14.04 funktioniert der Client nicht mehr unter dem jetzt standardmäßigen Apache2.4. Ich habe die auf der Apache-Website beschriebenen Änderungen an den alten .confDateien vorgenommen, z. „hinzugefügt, .confum die alten Konfigurationsdateinamen und ersetzt Order deny,allowmit Require all granted“, aber es funktioniert immer noch nicht.

Dies ist die ursprüngliche Apache2.2-Konfiguration, die sich in aktivierten Sites befunden hat:

Alias /jpoker /usr/share/jpoker ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /POKER_REST http://127.0.0.1:19384/POKER_REST retry=1 ProxyPass /AVATAR http://127.0.0.1:19384/AVATAR retry=1 ProxyPass /UPLOAD http://127.0.0.1:19384/UPLOAD retry=1 

Was ich geändert habe:

Alias /jpoker /usr/share/jpoker ProxyRequests Off <Proxy *> Require all granted </Proxy> ProxyPass /POKER_REST http://127.0.0.1:19384/POKER_REST retry=1 ProxyPass /AVATAR http://127.0.0.1:19384/AVATAR retry=1 ProxyPass /UPLOAD http://127.0.0.1:19384/UPLOAD retry=1 

In config.deiner anderen .confDatei, deren Inhalt ich nicht geändert habe:

<Location /POKER_REST> # # The poker server does not honor KeepAlive and the # proxy must be set accordingly, otherwise it will # sometime return 502 errors. # SetEnv force-proxy-request-1.0 1 SetEnv proxy-nokeepalive 1 </Location> 

Und schließlich in den Kunden index.htmlgibt es diese Zeile:

config.jpoker = { restURL : 'http://localhost/POKER_REST' }; 

Davon hat immer schon gearbeitet und wird nicht geändert.

Ich bekomme diese Fehlermeldung vom Apache2 error.log:

[Mon Oct 29 13:02:09.122976 2018] [mpm_event:notice] [pid 3145:tid 139806694344576] AH00489: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Mon Oct 29 13:02:09.123019 2018] [core:notice] [pid 3145:tid 139806694344576] AH00094: Command line: '/usr/sbin/apache2' [Mon Oct 29 13:02:36.202721 2018] [proxy:error] [pid 3149:tid 139806583416576] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:19384 (127.0.0.1) failed [Mon Oct 29 13:02:36.202739 2018] [proxy:error] [pid 3149:tid 139806583416576] AH00959: ap_proxy_connect_backend disabling worker for (127.0.0.1) for 1s [Mon Oct 29 13:02:36.202742 2018] [proxy_http:error] [pid 3149:tid 139806583416576] [client 127.0.0.1:34394] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: http://localhost/jpoker/ 

Kann jemand vorschlagen, wie dieses Problem behoben werden kann?

0

0 Antworten auf die Frage