mod_proxy: ProxyPass / ProxyPassReverse

From: Benjamin Thelen <bent(at)wheregroup.com>
Date: Mon, 14 May 2007 16:50:00 +0200

(Sorry, versehentlich abgeschickt - nochmal fertig geschrieben - war
noch ein Fehler drin!)

Moin,

Ich habe apache-2.0.59 aus den Ports unter FreeBSD 6.1-RELEASE-p11
installiert und versuche eine ganz einfache ProxyPass / ProxyPassReverse
- Konstruktion zu bauen, bekomme aber folgende Fehlermeldung:

[Mon May 14 15:27:07 2007] [warn] proxy: No protocol handler was valid
for the URL /ben. If you are using a DSO version of mod_proxy, make sure
the proxy submodules are included in the configuration using LoadModule.

Installiert habe ich Apache mit den Optionen
"WITH_PROXY_MODULES=YES WITH_SSL_MODULES=YES"
und in der httpd.conf auch das Modul auch aktiviert:
LoadModule proxy_module libexec/apache2/mod_proxy.so

Um zu testen habe ich folgenden Abschnitt in eine test.conf in das
Unterverzeichnis "Includes" ausgelagert, geschrieben.

<IfModule mod_proxy.c>
        <Proxy /ben>
                 Order deny,allow
                 Allow from all
         </Proxy>

         #ProxyRequests Off
         ProxyPass /ben http://www.spiegel-online.de
         ProxyPassReverse /ben http://www.spiegel-online.de
</IfModule>

Rufe ich dann "http://192.168.2.118/ben" auf sehe ich nicht wie erwartet
www.spiegel-online.de, sondern bekomme ich dann ein "Forbidden" - "You
don't have permission to access /ben on this server".

Unter Ubuntu funktioniert es - demnach wird die Apache-Konfig wohl
richtig sein. Welche Module werden noch benötigt? Was fehlt?

Hätte jemand einen Tip für mich, das wäre nett!

Danke,
Benjamin

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 14 May 2007 - 16:51:46 CEST

search this site