mod_proxy: ProxyPass: "!" option

mod_proxy: ProxyPass: "!" option

am 01.10.2010 16:05:27 von Florent Georges

Hi, I have a MediaWiki instance configured on /xyz (so accessible=
=0Athrough http://my-site/xyz/SomePage), based on the following=0Asettings:=
http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Pa ge_title_--_Apa=
che_rewrite--root_access 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: ProxyRequests Off=0A ProxyPreserveHost On=0A =
ProxyPass /wiki !=0A ProxyPass / ...=0A ProxyPassReve=
rse / ... 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...) I guess I miss=
ed some subtleties of the ProxyPass "!" option.=0AAny idea? Regards,=
-- =0AFlorent Georges=0Ahttp://fgeorges.org/

------------------------------------------------------------ ---------
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: ProxyPass: "!" option

am 02.10.2010 01:56:37 von Igor Cicimov

--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" 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 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

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

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


On Oct 2, 2010 12:06 AM, "Florent Georges=
" <>=
wrote:

=A0Hi,



=A0I have a MediaWiki instance configured on /xyz (so accessible

through http://my=
-site/xyz/SomePage
), based on the following

settings:



-_Apache_rewrite--root_access" target=3D"_blank">http://www.mediawiki.org/w=
iki/Manual:Short_URL/wiki/Page_title_--_Apache_rewrite--root _access





=A0Everything works fine. =A0But now, I have to use mod_proxy to

proxy the content of the whole website somewhere else. =A0Except,

of course, the wiki URIs. =A0So I added the following to my site's

config:



=A0 =A0ProxyRequests =A0 =A0 Off

=A0 =A0ProxyPreserveHost On

=A0 =A0ProxyPass =A0 =A0 =A0 =A0 /wiki !

=A0 =A0ProxyPass =A0 =A0 =A0 =A0 / ...

=A0 =A0ProxyPassReverse =A0/ ...



=A0The redirects work fine. =A0But 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...)



=A0I guess I missed some subtleties of the ProxyPass "!" option.=


Any idea?



=A0Regards,



--

Florent Georges

=












------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org





--002215048a43f3a4fa049196f1c6--

Re: mod_proxy: ProxyPass: "!" option

am 02.10.2010 21:18:16 von Florent Georges

Igor Cicimov wrote: =0A> That rule means dont proxy wiki...is that wha=
t you want? 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/. Problem solved now :-) Regards=
, -- =0AFlorent Georges=0Ahttp://fgeorges.org/

------------------------------------------------------------ ---------
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