mod_proxy: ProxyPass: "!" option

Hi,=0A=0A I have a MediaWiki instance configured on /xyz (so accessible=
=0Athrough http://my-site/xyz/SomePage), based on the following=0Asettings:=
=0A=0Ahttp://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Pa ge_title_--_Apa=
che_rewrite--root_access=0A=0A Everything works fine. But now, I have to =
use mod_proxy to=0Aproxy the content of the whole website somewhere else. =
Except,=0Aof course, the wiki URIs. So I added the following to my site's=
=0Aconfig:=0A=0A ProxyRequests Off=0A ProxyPreserveHost On=0A =
ProxyPass /wiki !=0A ProxyPass / ...=0A ProxyPassReve=
rse / ...=0A=0A The redirects work fine. But I am not able to access the=
wiki=0Aanymore, as if the rule "ProxyPass /wiki !" was not taken into=0Aac=
count (or to be fair, as if I did something wrong...)=0A=0A I guess I miss=
ed some subtleties of the ProxyPass "!" option.=0AAny idea?=0A=0A Regards,=
=0A=0A-- =0AFlorent Georges=0Ahttp://fgeorges.org/=0A=0A=0A=0A

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Florent Georges [ Fr, 01 Oktober 2010 16:05 ] [ ID #2048545 ]

Re: mod_proxy: ProxyPass: "!" option

--002215048a43f3a4fa049196f1c6
Content-Type: text/plain; charset=ISO-8859-1

That rule means dont proxy wiki...is that what you want?

On Oct 2, 2010 12:06 AM, "Florent Georges" <lists [at] fgeorges.org> wrote:

Hi,

I have a MediaWiki instance configured on /xyz (so accessible
through http://my-site/xyz/SomePage), based on the following
settings:

http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_tit le_--_Apache_rewrite--root_access

Everything works fine. But now, I have to use mod_proxy to
proxy the content of the whole website somewhere else. Except,
of course, the wiki URIs. So I added the following to my site's
config:

ProxyRequests Off
ProxyPreserveHost On
ProxyPass /wiki !
ProxyPass / ...
ProxyPassReverse / ...

The redirects work fine. But I am not able to access the wiki
anymore, as if the rule "ProxyPass /wiki !" was not taken into
account (or to be fair, as if I did something wrong...)

I guess I missed some subtleties of the ProxyPass "!" option.
Any idea?

Regards,

--
Florent Georges
http://fgeorges.org/





------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org

--002215048a43f3a4fa049196f1c6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<p>That rule means dont proxy wiki...is that what you want?</p>
<p><blockquote type=3D"cite">On Oct 2, 2010 12:06 AM, "Florent Georges=
" <<a href=3D"mailto:lists [at] fgeorges.org">lists [at] fgeorges.org</a>>=
wrote:<br><br> =A0Hi,<br>
<br>
=A0I have a MediaWiki instance configured on /xyz (so accessible<br>
through <a href=3D"http://my-site/xyz/SomePage" target=3D"_blank">http://my=
-site/xyz/SomePage</a>), based on the following<br>
settings:<br>
<br>
<a href=3D"http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_-=
-_Apache_rewrite--root_access" target=3D"_blank">http://www.mediawiki.org/w=
iki/Manual:Short_URL/wiki/Page_title_--_Apache_rewrite--root _access</a><br>

<br>
=A0Everything works fine. =A0But now, I have to use mod_proxy to<br>
proxy the content of the whole website somewhere else. =A0Except,<br>
of course, the wiki URIs. =A0So I added the following to my site's<br>
config:<br>
<br>
=A0 =A0ProxyRequests =A0 =A0 Off<br>
=A0 =A0ProxyPreserveHost On<br>
=A0 =A0ProxyPass =A0 =A0 =A0 =A0 /wiki !<br>
=A0 =A0ProxyPass =A0 =A0 =A0 =A0 / ...<br>
=A0 =A0ProxyPassReverse =A0/ ...<br>
<br>
=A0The redirects work fine. =A0But I am not able to access the wiki<br>
anymore, as if the rule "ProxyPass /wiki !" was not taken into<br=
>
account (or to be fair, as if I did something wrong...)<br>
<br>
=A0I guess I missed some subtleties of the ProxyPass "!" option.=
<br>
Any idea?<br>
<br>
=A0Regards,<br>
<br>
--<br>
Florent Georges<br>
<a href=3D"http://fgeorges.org/" target=3D"_blank">http://fgeorges.org/</a>=
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------------------------------------ ---------<br>
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:<a href=3D"http://httpd.apache.org/userslist.html" target=3D"_b=
lank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
To unsubscribe, e-mail: <a href=3D"mailto:users-unsubscribe [at] httpd.apache.or=
g">users-unsubscribe [at] httpd.apache.org</a><br>
=A0 " =A0 from the digest: <a href=3D"mailto:users-digest-unsubscribe=
[at] httpd.apache.org">users-digest-unsubscribe [at] httpd.apache.org</a><br>
For additional commands, e-mail: <a href=3D"mailto:users-help [at] httpd.apache.=
org">users-help [at] httpd.apache.org</a><br>
<br>
</blockquote></p>

--002215048a43f3a4fa049196f1c6--
Igor Cicimov [ Sa, 02 Oktober 2010 01:56 ] [ ID #2048548 ]

Re: mod_proxy: ProxyPass: "!" option

Igor Cicimov wrote:=0A=0A=0A> That rule means dont proxy wiki...is that wha=
t you want?=0A=0A Yes it is. Actually, because of the RewriteRule which r=
ewrite /wiki/Page to /w/index.php?title=3DPage, I had to add a ProxyPass ex=
clusion on /w/ as well as on /wiki/.=0A=0A Problem solved now :-) Regards=
,=0A=0A-- =0AFlorent Georges=0Ahttp://fgeorges.org/=0A=0A=0A=0A

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Florent Georges [ Sa, 02 Oktober 2010 21:18 ] [ ID #2048550 ]
Webserver » gmane.comp.apache.user » mod_proxy: ProxyPass: "!" option

Vorheriges Thema: How to upgrade mod_proxy_ajp
Nächstes Thema: Error contain server name