ich möchte einen ReverseProxy einrichten.
hier die Zeilen der httpd.conf die ich geändert habe:
- Code: Select all
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_html_module modules/mod_proxy_html/mod_proxy_html.so
Include conf/proxy_html.conf
ProxyPass /xxx/ http://localhost:8080/
<Location /xxx/>
ProxyPassReverse /
ProxyHTMLURLMap / /xxx/
ProxyHTMLURLMap /xxx /xxx
</Location>
ProxyPassReverseCookieDomain localhost:8080 revProxy
Ich will also das wenn ich http://localhost/xxx/ eingebe die seite kommt, die der webserver auf port 8080 ausspruckt.
Das er sich "etwas" von 8080 holt klappt schonmal... Siehe Bild:
Allerdings klappt die sache mit dem umschreiben der URLs wohl noch nich so ganz
wenn ich mir die url der bilder ansehe steht da:
http://localhost/images/head_wiips.gif
sollte aber sein:
http://localhost/xxx/images/head_wiips.gif
wenn ich http://localhost/xxx/images/head_wiips.gif direkt eingebe, zeigt er mir das bild problemlos an (zumindest im IE, firefox hat so seine probleme damit)
für das url umschreiben sollte ja dieser teil zuständig sein:
- Code: Select all
ProxyHTMLURLMap / /xxx/
ProxyHTMLURLMap /xxx /xxx
Fehlt da irgendwas? oder was is da falsch?
Ich stehe irgendwie aufm schlauch.
danke schonmal für eure hilfe
mfg
roeni