ReverseProxy => Keine Bilder

Alles, was den Apache betrifft, kann hier besprochen werden.

ReverseProxy => Keine Bilder

Postby Roeni » 21. April 2007 16:04

Hi.
Ich hab 2 webserver laufen.
den einen will ich über http://localhost/ips erreichen können.
hab dazu folgende module aktiviert:

LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

und folgendes am ende der httpd.conf eingetragen:
ProxyPass /ips http://localhost:8080
ProxyPassReverse /ips http://localhost:8080

haut wunderbar hin.
nur ich habe 1. keine bilder 2. führen die links ins leere weil der apache irgendwie vergisst das "/ips" mit in die links zu schreiben.

wo liegt mein fehler?

mfg
roeni
Last edited by Roeni on 21. April 2007 20:27, edited 1 time in total.
Roeni
 
Posts: 8
Joined: 21. April 2007 15:59

Postby Wiedmann » 21. April 2007 16:14

weil der apache irgendwie vergisst das "/ips" mit in die links zu schreiben.

Der Apache schreibt keine Links um. Wenn du also absolute URIs benutzt, geht das so nicht.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Roeni » 21. April 2007 16:19

hmm und wie löse ich das problem?

den webserver den ich einbinde, stellt das nunma so wie es ist zur verfügung :-/
Roeni
 
Posts: 8
Joined: 21. April 2007 15:59

Postby Wiedmann » 21. April 2007 16:35

mod_proxy_html kann sowas z.B.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Roeni » 21. April 2007 17:22

hmm danke.
gestoßen bin ich da beim googeln auch schonma drauf vorher.
hab nur nich wirklich irgendwas gefunden was sich brauchbar angehört hat.

wie geht das in etwa mit dem mod_proxy_html ?
bin schon über n paar stichworte mit denen ich google füttern kann froh :)
Roeni
 
Posts: 8
Joined: 21. April 2007 15:59

Postby Wiedmann » 21. April 2007 17:28

wie geht das in etwa mit dem mod_proxy_html ?

Keine Ahnung.

bin schon über n paar stichworte mit denen ich google füttern kann froh

Wie wäre es, einfach die Doku auf der Homepage von mod_proxy_html zu lesen?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Roeni » 21. April 2007 18:39

Ok hab jetzt folgendes:
Code: Select all
LoadModule proxy_module      modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule headers_module    modules/mod_headers.so
LoadFile   "D:\libxml2-2.6.27.win32\libxml2-2.6.27.win32\bin\libxml2.dll"
LoadModule proxy_html_module modules/mod_proxy_html.so

ProxyRequests off
ProxyPass /ips http://localhost:8080
ProxyHTMLURLMap http://localhost:8080 /ips

<Location /ips>
        ProxyPassReverse /
        SetOutputFilter  proxy-html
        ProxyHTMLURLMap  /      /ips/
        ProxyHTMLURLMap  /ips  /ips
        RequestHeader    unset  Accept-Encoding
</Location>


Das stylesheet des eingebundenen webservers is nun da.
die links zu den bildern sind auch richtig.
allerdings zeigt er sie trotzdem nicht an. wenn ich ein bild im browser aufrufe dann steht da nur wirres zeug: GIF89aWI÷®½ÐfŽ·Iv£Yu”*Pv‚“£¾ÏáOz¤«»Í>i”bƒ¥·ÈÚs„•~”«@|êîòLu
Roeni
 
Posts: 8
Joined: 21. April 2007 15:59

Postby martinpre » 21. April 2007 21:54

Also dieses "wirre Zeug" ist ein Bild, es wurde halt nicht als Bild verarbeitet. dh der Mimetype wurde für das Bild nicht richtig mitgesendet.

hoffe es hilft dir etwas, sonst fallt mir dazu leider nix ein.
martinpre
 
Posts: 405
Joined: 22. May 2006 16:14
Location: Nähe Tulln / Österreich

Postby Roeni » 21. April 2007 22:17

abegesehen davon das ich nich wusste wie ich das formulieren soll, hab ich mir das gleiche auch schon gedacht^^

was ich dagegen machen kann weiß ich aber net :-/
Roeni
 
Posts: 8
Joined: 21. April 2007 15:59

Postby argonist » 23. April 2007 14:53

Ich habe gleiche Problem mit Links und zwei Server. Mit mod_proxy_html habe ich auf meinen Rechner das Problem gelöst. Echt super.

Aber auf Server kann ich mod_proxy_html nicht benutzen, denn auf Server läuft Apache 2.0.49 und auf das Server kann ich nicht mod_proxy_html kompilieren, denn es fehlt ein Programm apache-devel-2.0.49, wo ich ins Internet nicht gefunden habe.
Gibt es die Alternative gegenüber mod_proxy_html? Geht es auch mit mod_rewrite das Links umzuschreiben? und wie?

Meine Konfiguration mit mod_proxy:
Code: Select all
   ProxyPass /PonteWeb/                http://localhost:8080/PonteWeb/
   ProxyPass /Stage/PonteWeb          http://localhost:8180/PonteWeb/

    ProxyPassReverse /PonteWeb/                 http://localhost:8080/PonteWeb/
    ProxyPassReverse /Stage/PonteWeb            http://localhost:8180/PonteWeb/


Ich würde mich freuen, wenn einer mir eine Hinweise geben kann.

Gruß
Argonist
argonist
 
Posts: 9
Joined: 23. April 2007 14:44


Return to Apache

Who is online

Users browsing this forum: No registered users and 253 guests