Ubuntu Apache2 ProxyHTMLURLMap Problem

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

Ubuntu Apache2 ProxyHTMLURLMap Problem

Postby bemar » 21. April 2009 12:45

Hallo,

ich hab einen Apache2 auf Ubuntu 8.10 Server laufen.
Das mit dem Reverse-Proxy läuft ansatzweise - leider werden die URLs noch nicht richtig angepasst.
Dafür ich hab das proxy-html modul geladen und versuche gerade in meiner config das Mapping einzurichten.
Wenn ich mich mit dem Browser (egal welcher) auf den Server verbinde bekomme ich die Meldung:
"Fehlerhafte Kodierung der Inhalte"
"Die Webseite, die Sie öffnen möchten, kann nicht angezeigt werden, da sie eine ungültige oder unbekannte Form der Kompression verwendet."


Hier mein/etc/apache2/sites-available/my-site.conf
Code: Select all
<VirtualHost 192.168.62.200>
        ServerName my-site.local
        ServerAdmin admin@my-site.local
        DocumentRoot /var/www/

        ProxyRequests Off
        ProxyPreserveHost On
        ProxyPass /net2ftp http://192.168.62.44/net2ftp/
        ProxyPassReverse /net2ftp http://192.168.62.44/net2ftp/

        ProxyHTMLURLMap http://192.168.62.44/net2ftp/ /net2ftp
        <Location /net2ftp>
                SetOutputFilter proxy-html
                ProxyHTMLURLMap  / /net2ftp/
        </Location>

</VirtualHost>


Ich nehme stark an, dass da evtl. ein Konfiguratiosnfehler vorliegt, leider weiß ich nicht wo.

Bin für jede Hilfe dankbar.

Gruß
Ben
bemar
 
Posts: 6
Joined: 21. April 2009 11:34

Re: Ubuntu Apache2 ProxyHTMLURLMap Problem

Postby bemar » 05. June 2009 13:13

Mittlerweile hab ich das ganze zum laufen gebracht. Nur funktioniert es jetzt noch nicht mit den CSS und Javascripts.
Hierzu gibt es wohl die Funktion "ProxyHTMLExtended".

Leider funktioniert das ganze noch nicht.

Hier mal meine Config:
Code: Select all
<VirtualHost 192.168.62.46>
        ServerName mycompany.local
        ServerAdmin ben@mycompany.ch
        DocumentRoot /var/www/

        ProxyRequests Off
        ProxyPreserveHost On
        ProxyHTMLExtended On

        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>

        ProxyPass /webftp/ http://secftp.mycompany.ch/
        ProxyHTMLURLMap http://secftp.mycompany.ch/ /webftp/
        <Location /webftp/>
                ProxyPassReverse /
                SetOutputFilter  proxy-html
                ProxyHTMLURLMap  /      /webftp/
                ProxyHTMLURLMap  /webftp /webftp
                ProxyHTMLURLMap  url(/net2ftp/skins    url(/webftp/net2ftp/skins
                RequestHeader    unset  Accept-Encoding
        </Location>
</VirtualHost>

Wie gesagt die Standard URLs werden gemappt - die Javascript und CSS Urls leider noch nicht.

Hat jemand einen Tipp?

Vielen Dank

Gruß
Ben
bemar
 
Posts: 6
Joined: 21. April 2009 11:34


Return to Apache

Who is online

Users browsing this forum: No registered users and 22 guests