ich möchte Apache als ReverseProxy nutzen und Requests auf localhost:8090 umleiten. Die Umleitung funktioniert auch, leider bekomme ich aber die Umschreibung der in den HTML-Seiten enthaltenen Links nicht hin. So sieht meine conf-Datei aus:
- Code: Select all
SSLProxyEngine on
ServerAdmin webmaster@example.com
ServerName myserver.net
SetOutputFilter proxy-html
LogLevel warn proxy_html:trace3
ProxyHTMLExtended On
ProxyPass /yacy http://localhost:8090/
ProxyHTMLURLMap http://localhost:8090 /yacy
<Location /yacy/>
ProxyPassReverse /
ProxyHTMLURLMap / /yacy/
ProxyHTMLURLMap /yacy /yacy
RequestHeader unset Accept-Encoding
</Location>
Die Apache-Conf ist ergänzt um Folgendes:
- Code: Select all
ProxyHTMLLinks a href
ProxyHTMLLinks area href
ProxyHTMLLinks link href
ProxyHTMLLinks img src longdesc usemap
ProxyHTMLLinks object classid codebase data usemap
ProxyHTMLLinks q cite
ProxyHTMLLinks blockquote cite
ProxyHTMLLinks ins cite
ProxyHTMLLinks del cite
ProxyHTMLLinks form action
ProxyHTMLLinks input src usemap
ProxyHTMLLinks head profile
ProxyHTMLLinks base href
ProxyHTMLLinks script src for
ProxyHTMLLinks iframe src
ProxyHTMLEvents onclick ondblclick onmousedown onmouseup \
onmouseover onmousemove onmouseout onkeypress \
onkeydown onkeyup onfocus onblur onload \
onunload onsubmit onreset onselect onchange
Die Apache error.log meldet beim Server-Start:
- Code: Select all
[Sat Oct 17 13:54:49.622793 2015] [proxy_html:trace1] [pid 8967] mod_proxy_html.c(823): [client 87.79.46.153:59768] Non-proxy request; not inserting proxy-html filter