mod_proxy question

mod_proxy question

am 11.02.2008 21:12:14 von gehm

--------------enig2262FA9D1C54C0B2E90F6A64
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: quoted-printable

Hi everybody!

Maybe someone can help me with this issue. We do have a strange setup of =

different webservers here, and I want to have the main one proxying the=20
content of the otherone exept of a few dirs.
So my setup is:

..
ProxyPass /pcpool !
..
ProxyPass / http://www.physics.tu-berlin.de/

That all works fine. But when i add a line
..
ProxyPass ^/~([^/]+)/?(.*) !
..

It won't serve the userdirs locally. Could someone tell me how to leave=20
the public_html files untouched by the Proxy Module? I also tried it=20
with Rewrite Rules....

Ekki

--=20
Ekkehard Gehm * mailto:gehm@physik.tu-berlin.de
TU Berlin Fakultät II * http://www.physik.tu-berlin.de
PC-Pool Tutor * PGP-Key: http://www.physik.tu-berlin.de/~=
gehm/pubkey.asc

Experience is what you get when you were expecting something else.

Microsoft: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"



--------------enig2262FA9D1C54C0B2E90F6A64
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkewrCEACgkQ3AMzQY6nzubwSQCfQ3eg2qSj4m/dHUaURhOP Hb25
/bcAn3wcuw7a28TcyZp71gFHZtQGI0t+
=Tw8R
-----END PGP SIGNATURE-----

--------------enig2262FA9D1C54C0B2E90F6A64--

Re: mod_proxy question

am 11.02.2008 21:51:52 von Joshua Slive

On Feb 11, 2008 3:12 PM, Ekkehard 'Ekki' Gehm wrote:
> Hi everybody!
>
> Maybe someone can help me with this issue. We do have a strange setup of
> different webservers here, and I want to have the main one proxying the
> content of the otherone exept of a few dirs.
> So my setup is:
>
> ...
> ProxyPass /pcpool !
> ...
> ProxyPass / http://www.physics.tu-berlin.de/
>
> That all works fine. But when i add a line
> ...
> ProxyPass ^/~([^/]+)/?(.*) !
> ...
>
> It won't serve the userdirs locally. Could someone tell me how to leave
> the public_html files untouched by the Proxy Module? I also tried it
> with Rewrite Rules....

You can't use a regex in ProxyPass. You can do it with mod_rewrite or
you can do it with ProxyPassMatch, assuming you are using 2.2.5 or
later.

Of course, the regex you have written is almost exactly equivalent to
ProxyPass /~ !
So just using that would be the simplest solution.

Remember that exceptions need to be written BEFORE the main ProxyPass
directives.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: mod_proxy question

am 11.02.2008 22:03:55 von gehm

--------------enigED4B9BE024114D044E0E264A
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Joshua Slive schrieb:
> On Feb 11, 2008 3:12 PM, Ekkehard 'Ekki' Gehm > wrote:
> =20
>> Hi everybody!
>>
>> Maybe someone can help me with this issue. We do have a strange setup =
of
>> different webservers here, and I want to have the main one proxying th=
e
>> content of the otherone exept of a few dirs.
>> So my setup is:
>>
>> ...
>> ProxyPass /pcpool !
>> ...
>> ProxyPass / http://www.physics.tu-berlin.de/
>>
>> That all works fine. But when i add a line
>> ...
>> ProxyPass ^/~([^/]+)/?(.*) !
>> ...
>>
>> It won't serve the userdirs locally. Could someone tell me how to leav=
e
>> the public_html files untouched by the Proxy Module? I also tried it
>> with Rewrite Rules....
>> =20
>
> You can't use a regex in ProxyPass. You can do it with mod_rewrite or
> you can do it with ProxyPassMatch, assuming you are using 2.2.5 or
> later.
>
> Of course, the regex you have written is almost exactly equivalent to
> ProxyPass /~ !
> So just using that would be the simplest solution.
>
> Remember that exceptions need to be written BEFORE the main ProxyPass
> directives.
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Proje=
ct.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
> =20
Ah that explains a lot. But: Even when I exclude a certain /~user it=20
doesn't work. Is it a Problem with the ~ or is it maybe a Problem with=20
the userdir_module? Because I get the 404 from the other webserver.

Ekki

--=20
Ekkehard Gehm * mailto:gehm@physik.tu-berlin.de
TU Berlin Fakultät II * http://www.physik.tu-berlin.de
PC-Pool Tutor * PGP-Key: http://www.physik.tu-berlin.de/~=
gehm/pubkey.asc

Experience is what you get when you were expecting something else.

Microsoft: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"



--------------enigED4B9BE024114D044E0E264A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkewuD8ACgkQ3AMzQY6nzuZ5xACglfFw78YQLdPaeFQmXkmJ oco+
qMEAn0DLizxJlgRebhufzqdmj661so+w
=BFla
-----END PGP SIGNATURE-----

--------------enigED4B9BE024114D044E0E264A--

Re: mod_proxy question

am 11.02.2008 22:54:31 von gehm

--------------enigDB996A4A64D5742FE9EC7C76
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Ekkehard 'Ekki' Gehm schrieb:
> Joshua Slive schrieb:
>> On Feb 11, 2008 3:12 PM, Ekkehard 'Ekki' Gehm=20
>> wrote:
>> =20
>>> Hi everybody!
>>>
>>> Maybe someone can help me with this issue. We do have a strange=20
>>> setup of
>>> different webservers here, and I want to have the main one proxying t=
he
>>> content of the otherone exept of a few dirs.
>>> So my setup is:
>>>
>>> ...
>>> ProxyPass /pcpool !
>>> ...
>>> ProxyPass / http://www.physics.tu-berlin.de/
>>>
>>> That all works fine. But when i add a line
>>> ...
>>> ProxyPass ^/~([^/]+)/?(.*) !
>>> ...
>>>
>>> It won't serve the userdirs locally. Could someone tell me how to lea=
ve
>>> the public_html files untouched by the Proxy Module? I also tried it
>>> with Rewrite Rules....
>>> =20
>>
>> You can't use a regex in ProxyPass. You can do it with mod_rewrite or
>> you can do it with ProxyPassMatch, assuming you are using 2.2.5 or
>> later.
>>
>> Of course, the regex you have written is almost exactly equivalent to
>> ProxyPass /~ !
>> So just using that would be the simplest solution.
>>
>> Remember that exceptions need to be written BEFORE the main ProxyPass
>> directives.
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server=20
>> Project.
>> See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>> =20
> Ah that explains a lot. But: Even when I exclude a certain /~user it=20
> doesn't work. Is it a Problem with the ~ or is it maybe a Problem with =

> the userdir_module? Because I get the 404 from the other webserver.
>
> Ekki
>
I did it with ProxyPassMatch And now it works....

THXs

--=20
Ekkehard Gehm * mailto:gehm@physik.tu-berlin.de
TU Berlin Fakultät II * http://www.physik.tu-berlin.de
PC-Pool Tutor * PGP-Key: http://www.physik.tu-berlin.de/~=
gehm/pubkey.asc

Experience is what you get when you were expecting something else.

Microsoft: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"



--------------enigDB996A4A64D5742FE9EC7C76
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkewxBcACgkQ3AMzQY6nzuZTKwCfaak1JwO6T1a7EmRUGPNb jkfL
C1IAnA9qECPpnFBPKRDFvMhKtmesrb8T
=toii
-----END PGP SIGNATURE-----

--------------enigDB996A4A64D5742FE9EC7C76--