![](https://seccdn.libravatar.org/avatar/164a625f3a558d1dac0727ce6a3ba850.jpg?s=120&d=mm&r=g)
Ralf Prengel [12.08.2015 14:24]:
Zitat von Ralf Prengel <ralf.prengel@rprengel.de>:
Zitat von Ralf Prengel <ralf.prengel@rprengel.de>:
Hallo,
ich hatte gehofft mein Apache-Proxythema wäre durch aber dem ist leider nicht so. Rufe ich eine seiet auf bekomme ich folgende Meldung
Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /argab. Reason: DNS lookup failure for: namename Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.
name ist der Name des eigentlichen Zielsystems. Was mit wurdent ist das der doppelt angezeigt wird. Alle beteiligten Systeme haben eine funtionierende DNS Auflöung gegen einen DNS Server. nlsookup und ping funktionueren sowohl per IP als auch per Name.
Was mache ich falsch?
Gruss und Dank
Hier noch die vhost Datei. Ist zu warm heute.
<VirtualHost *> ServerName bame ServerAdmin ralf.prengel@name.de
ProxyRequests On
<Proxy *> Order deny,allow Allow from all </Proxy>
ProxyPreserveHost On ProxyPass / http://IP ProxyPassReverse / http://IP </VirtualHost>
Diese Meldung erscheint wenn ich / hiter die IP setzte.
ProxyPass / http://IP/ ProxyPassReverse / http://IP/ Not Found
The requested URL /nameb was not found on this server. Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny3 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 Server at 192.168.213.131 Port 80
Hallo Ralf, bei mir steht sinngemäß (geht bei Apache 2.2 und 2.4) im vhost: <IfModule mod_proxy.c> ProxyRequests Off ProxyVia Off ProxyPass / https://andererhost:44300/ timeout=600 ProxyHTMLURLMap https://andererhost:44300 https://meinhost:44300 ProxyTimeout 600 <Location http://meinhost:44300> ProxyPassReverse / ProxyHTMLURLMap / http://meinhost:44300 ProxyHTMLURLMap http://andererhost:44300 https://meinhost:44300 RequestHeader unset Accept-Encoding </Location> </IfModule> Ein Unterschied ist, dass bei mir nach dem ProxyPassReverse nur / steht, kein Hostname - wohl weil es bei mir im Location-Abschnitt steht. Gruß Werner --