You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Werner Schalk <we...@gmx.de> on 2007/11/29 17:12:12 UTC
[users@httpd] Apache 2.2.6, problem with mod_proxy: "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
Hi,
I am running the latest version of XAMMP provided by Apachefriends.org. The
software includes Apache 2.2.6 and I am trying to configure a reverse proxy.
The modules are loaded but the following lines makes Apache unhappy and
complain about my configuration:
ProxyPass /a/ http://localhost:8080/
ProxyPass /b/ http://localhost:8888/
Now when starting the Apache I do get the following error message for a
syntax check (which corresponds exactly to those lines):
/opt/lampp/bin/httpd -t -f /opt/lampp/etc/httpd.conf
Syntax error on line 236 of /opt/lampp/etc/httpd.conf:
ProxyPass|ProxyPassMatch can not have a path when defined in a location.
Does anyone know what my mistake here is? I have searched the manual and
googled for the problem but I didn't find any answer. Thanks!
Best regards,
Werner
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.2.6, problem with mod_proxy: "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
Posted by Alan AZZERA <az...@gmail.com>.
Ooops ! One more knowledge hole filled.
Thanks & regards,
Al.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Apache 2.2.6, problem with mod_proxy: "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
Posted by Axel-Stephane SMORGRAV <Ax...@europe.adp.com>.
Location goes under Directory - same thing.
>From the manual:
<quote>
directory
A directive marked as being valid in this context may be used inside <Directory>, <Location>, <Files>, and <Proxy> containers in the server configuration files, subject to the restrictions outlined in Configuration Sections.
</quote>
-ascs
-----Message d'origine-----
De : Alan AZZERA [mailto:azzera.alan@gmail.com]
Envoyé : mardi 11 décembre 2007 15:46
À : users@httpd.apache.org
Objet : Re: [users@httpd] Apache 2.2.6, problem with mod_proxy: "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
Hi.
According to http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass,
the ProxyPass directive can take place only in server config, virtual host definition, and a directory block. Location is not mentionned...
Regards,
Al.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.2.6, problem with mod_proxy: "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
Posted by Alan AZZERA <az...@gmail.com>.
Hi.
According to http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass,
the ProxyPass directive can take place only in server config, virtual
host definition, and a directory block. Location is not mentionned...
Regards,
Al.
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.2.6, problem with mod_proxy:
"ProxyPass|ProxyPassMatch can not have a path when defined in a location."
Posted by David Cassidy <da...@twocats.co.uk>.
I'd say they fixed a bug....
because that condition should never have been matched in the first
place.
On Fri, 2007-11-30 at 10:46 +0100, Werner Schalk wrote:
> Hi,
>
> > I would guess it's because your config actually looks something like:
> >
> > <Location /whatever>
> > ....
> > ProxyPass /a/ http://localhost:8080/
> > ProxyPass /b/ http://localhost:8888/
> > ...
> > </Location>
> >
> > maybe?
>
> Yes, but where is the problem with this statement? This worked fine in
> Apache 2.2.3, why does it not work anymore with Apache 2.2.6?
>
> Best regards,
> Werner
>
> ----- Original Message -----
> From: "Jim Jagielski" <ji...@jaguNET.com>
> To: <us...@httpd.apache.org>
> Sent: Thursday, November 29, 2007 5:15 PM
> Subject: Re: [users@httpd] Apache 2.2.6, problem with mod_proxy:
> "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
>
>
> > On Thu, Nov 29, 2007 at 05:12:12PM +0100, Werner Schalk wrote:
> >> Hi,
> >>
> >> I am running the latest version of XAMMP provided by Apachefriends.org.
> >> The
> >> software includes Apache 2.2.6 and I am trying to configure a reverse
> >> proxy. The modules are loaded but the following lines makes Apache
> >> unhappy
> >> and complain about my configuration:
> >>
> >> ProxyPass /a/ http://localhost:8080/
> >> ProxyPass /b/ http://localhost:8888/
> >>
> >> Now when starting the Apache I do get the following error message for a
> >> syntax check (which corresponds exactly to those lines):
> >>
> >> /opt/lampp/bin/httpd -t -f /opt/lampp/etc/httpd.conf
> >> Syntax error on line 236 of /opt/lampp/etc/httpd.conf:
> >> ProxyPass|ProxyPassMatch can not have a path when defined in a location.
> >>
> >> Does anyone know what my mistake here is? I have searched the manual and
> >> googled for the problem but I didn't find any answer. Thanks!
> >>
> >
> > I would guess it's because your config actually looks something like:
> >
> > <Location /whatever>
> > ....
> > ProxyPass /a/ http://localhost:8080/
> > ProxyPass /b/ http://localhost:8888/
> > ...
> > </Location>
> >
> > maybe?
> > --
> > ===========================================================================
> > Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
> > "Great is the guilt of an unnecessary war" ~ John Adams
> >
> > ---------------------------------------------------------------------
> > 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@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.2.6, problem with mod_proxy:
"ProxyPass|ProxyPassMatch can not have a path when defined in a location."
Posted by David Cassidy <da...@twocats.co.uk>.
Werner,
This is in a location block for /whatever
then you are proxying only stuff that starts /a/... or /b/....
neither of which will ever be matched.
D
On Fri, 2007-11-30 at 10:46 +0100, Werner Schalk wrote:
> Hi,
>
> > I would guess it's because your config actually looks something like:
> >
> > <Location /whatever>
> > ....
> > ProxyPass /a/ http://localhost:8080/
> > ProxyPass /b/ http://localhost:8888/
> > ...
> > </Location>
> >
> > maybe?
>
> Yes, but where is the problem with this statement? This worked fine in
> Apache 2.2.3, why does it not work anymore with Apache 2.2.6?
>
> Best regards,
> Werner
>
> ----- Original Message -----
> From: "Jim Jagielski" <ji...@jaguNET.com>
> To: <us...@httpd.apache.org>
> Sent: Thursday, November 29, 2007 5:15 PM
> Subject: Re: [users@httpd] Apache 2.2.6, problem with mod_proxy:
> "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
>
>
> > On Thu, Nov 29, 2007 at 05:12:12PM +0100, Werner Schalk wrote:
> >> Hi,
> >>
> >> I am running the latest version of XAMMP provided by Apachefriends.org.
> >> The
> >> software includes Apache 2.2.6 and I am trying to configure a reverse
> >> proxy. The modules are loaded but the following lines makes Apache
> >> unhappy
> >> and complain about my configuration:
> >>
> >> ProxyPass /a/ http://localhost:8080/
> >> ProxyPass /b/ http://localhost:8888/
> >>
> >> Now when starting the Apache I do get the following error message for a
> >> syntax check (which corresponds exactly to those lines):
> >>
> >> /opt/lampp/bin/httpd -t -f /opt/lampp/etc/httpd.conf
> >> Syntax error on line 236 of /opt/lampp/etc/httpd.conf:
> >> ProxyPass|ProxyPassMatch can not have a path when defined in a location.
> >>
> >> Does anyone know what my mistake here is? I have searched the manual and
> >> googled for the problem but I didn't find any answer. Thanks!
> >>
> >
> > I would guess it's because your config actually looks something like:
> >
> > <Location /whatever>
> > ....
> > ProxyPass /a/ http://localhost:8080/
> > ProxyPass /b/ http://localhost:8888/
> > ...
> > </Location>
> >
> > maybe?
> > --
> > ===========================================================================
> > Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
> > "Great is the guilt of an unnecessary war" ~ John Adams
> >
> > ---------------------------------------------------------------------
> > 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@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.2.6, problem with mod_proxy: "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
Posted by Werner Schalk <we...@gmx.de>.
Hi,
> I would guess it's because your config actually looks something like:
>
> <Location /whatever>
> ....
> ProxyPass /a/ http://localhost:8080/
> ProxyPass /b/ http://localhost:8888/
> ...
> </Location>
>
> maybe?
Yes, but where is the problem with this statement? This worked fine in
Apache 2.2.3, why does it not work anymore with Apache 2.2.6?
Best regards,
Werner
----- Original Message -----
From: "Jim Jagielski" <ji...@jaguNET.com>
To: <us...@httpd.apache.org>
Sent: Thursday, November 29, 2007 5:15 PM
Subject: Re: [users@httpd] Apache 2.2.6, problem with mod_proxy:
"ProxyPass|ProxyPassMatch can not have a path when defined in a location."
> On Thu, Nov 29, 2007 at 05:12:12PM +0100, Werner Schalk wrote:
>> Hi,
>>
>> I am running the latest version of XAMMP provided by Apachefriends.org.
>> The
>> software includes Apache 2.2.6 and I am trying to configure a reverse
>> proxy. The modules are loaded but the following lines makes Apache
>> unhappy
>> and complain about my configuration:
>>
>> ProxyPass /a/ http://localhost:8080/
>> ProxyPass /b/ http://localhost:8888/
>>
>> Now when starting the Apache I do get the following error message for a
>> syntax check (which corresponds exactly to those lines):
>>
>> /opt/lampp/bin/httpd -t -f /opt/lampp/etc/httpd.conf
>> Syntax error on line 236 of /opt/lampp/etc/httpd.conf:
>> ProxyPass|ProxyPassMatch can not have a path when defined in a location.
>>
>> Does anyone know what my mistake here is? I have searched the manual and
>> googled for the problem but I didn't find any answer. Thanks!
>>
>
> I would guess it's because your config actually looks something like:
>
> <Location /whatever>
> ....
> ProxyPass /a/ http://localhost:8080/
> ProxyPass /b/ http://localhost:8888/
> ...
> </Location>
>
> maybe?
> --
> ===========================================================================
> Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
> "Great is the guilt of an unnecessary war" ~ John Adams
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.2.6, problem with mod_proxy: "ProxyPass|ProxyPassMatch can not have a path when defined in a location."
Posted by Jim Jagielski <ji...@jaguNET.com>.
On Thu, Nov 29, 2007 at 05:12:12PM +0100, Werner Schalk wrote:
> Hi,
>
> I am running the latest version of XAMMP provided by Apachefriends.org. The
> software includes Apache 2.2.6 and I am trying to configure a reverse
> proxy. The modules are loaded but the following lines makes Apache unhappy
> and complain about my configuration:
>
> ProxyPass /a/ http://localhost:8080/
> ProxyPass /b/ http://localhost:8888/
>
> Now when starting the Apache I do get the following error message for a
> syntax check (which corresponds exactly to those lines):
>
> /opt/lampp/bin/httpd -t -f /opt/lampp/etc/httpd.conf
> Syntax error on line 236 of /opt/lampp/etc/httpd.conf:
> ProxyPass|ProxyPassMatch can not have a path when defined in a location.
>
> Does anyone know what my mistake here is? I have searched the manual and
> googled for the problem but I didn't find any answer. Thanks!
>
I would guess it's because your config actually looks something like:
<Location /whatever>
....
ProxyPass /a/ http://localhost:8080/
ProxyPass /b/ http://localhost:8888/
...
</Location>
maybe?
--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"Great is the guilt of an unnecessary war" ~ John Adams
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org