You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tiago Braga <tb...@gmail.com> on 2013/10/09 14:28:25 UTC

[users@httpd] ProxyPass without slash not working

Hello!

I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy.

I have the below configuration:

<VirtualHost *:80>
    ServerName www.host.com.br
    ProxyPass / http://static.host.com.br/html/directory/
</VirtualHost>

When the url is: www.host.com.br/test/
It's works.

When the url is: www.host.com.br/test
It's not works with the message in the log bellow:

127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /test HTTP/1.1" 302 301 "-"
"lwp-request/5.827 libwww-perl/5.833"
127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /html/directory/test/
HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"

Why?



-- 
Atenciosamente,
Tiago Braga Machado



-- 
Atenciosamente,
Tiago Braga Machado

Re: [users@httpd] ProxyPass without slash not working

Posted by Tiago Braga <tb...@gmail.com>.
Sorry, I put the wrong example, below the correct:

ProxyPassMatch ^/(.*) http://static.host.com.br/html/directory
ProxyPassReverse / /html/directory/<http://static.host.com.br/html/directory/>

But,

When the url is /anythig
It's redirected to /anything/ with 302.

But I would like with 301.

How I do?



On Thu, Oct 10, 2013 at 7:24 PM, Tiago Braga <tb...@gmail.com>wrote:

> I did the below rules:
>
> ProxyPassMatch ^/(.*)
> http://static.comprafacil.com.br/html/comprafacilempresas
> ProxyPassReverse / /html/comprafacilempresas/
>
> And it's working! Thanks!
>
>
>
> On Thu, Oct 10, 2013 at 5:13 PM, Tiago Braga <tb...@gmail.com>wrote:
>
>> On Thu, Oct 10, 2013 at 4:13 PM, trifo <tr...@gmail.com> wrote:
>>
>>> maybe a workaround to add the trailing slash automagically using reweite
>>> rule?
>>>
>>
>> I has tried and not works.
>>
>>
>>> --Trifo
>>>
>>> ≈( Telefonról küldve )≈
>>> On Oct 10, 2013 6:39 PM, "Tiago Braga" <tb...@gmail.com> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Thu, Oct 10, 2013 at 1:11 PM, Eric Covener <co...@gmail.com>wrote:
>>>>
>>>>> On Thu, Oct 10, 2013 at 12:03 PM, Tiago Braga <tb...@gmail.com>
>>>>> wrote:
>>>>> > Looking the log and I see an thing:
>>>>> >
>>>>> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /teste HTTP/1.1" 302
>>>>> 301 "-"
>>>>> > "lwp-request/5.827 libwww-perl/5.833"
>>>>> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /html/directory/test/
>>>>> > HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
>>>>>
>>>>> > Why do it occurs?
>>>>>
>>>>> The backend server redirected you to add a trailing slash. The proxy
>>>>> is supposed to strip off the /html/directory due to ProxypassReverse
>>>>> before the redirect goes out, but it doesn't happen.
>>>>>
>>>>
>>>> Look the directive "UseCanonicalName" in the doc of apache:
>>>>
>>>> "An example where this may be useful is on an intranet server where you
>>>> have users connecting to the machine using short names such as www. You'll
>>>> notice that if the users type a shortname, and a URL which is a directory,
>>>> such as http://www/splat, without the trailing slash then Apache will
>>>> redirect them tohttp://www.domain.com/splat/. .... But if
>>>> UseCanonicalName is set Off, then Apache will redirect to
>>>> http://www/splat/."
>>>>
>>>> So, when the url /test is called, it's redirected with trailing slash,
>>>> but not working with ProxyPass and ProxyPassReverse.
>>>>
>>>> How do I fix it?
>>>>
>>>> Thanks!
>>>>
>>>> --
>>>> Atenciosamente,
>>>> Tiago Braga Machado
>>>>
>>>
>>
>>
>> --
>> Atenciosamente,
>> Tiago Braga Machado
>>
>
>
>
> --
> Atenciosamente,
> Tiago Braga Machado
>



-- 
Atenciosamente,
Tiago Braga Machado

Re: [users@httpd] ProxyPass without slash not working

Posted by Tiago Braga <tb...@gmail.com>.
I did the below rules:

ProxyPassMatch ^/(.*)
http://static.comprafacil.com.br/html/comprafacilempresas
ProxyPassReverse / /html/comprafacilempresas/

And it's working! Thanks!



On Thu, Oct 10, 2013 at 5:13 PM, Tiago Braga <tb...@gmail.com>wrote:

> On Thu, Oct 10, 2013 at 4:13 PM, trifo <tr...@gmail.com> wrote:
>
>> maybe a workaround to add the trailing slash automagically using reweite
>> rule?
>>
>
> I has tried and not works.
>
>
>> --Trifo
>>
>> ≈( Telefonról küldve )≈
>> On Oct 10, 2013 6:39 PM, "Tiago Braga" <tb...@gmail.com> wrote:
>>
>>>
>>>
>>>
>>> On Thu, Oct 10, 2013 at 1:11 PM, Eric Covener <co...@gmail.com> wrote:
>>>
>>>> On Thu, Oct 10, 2013 at 12:03 PM, Tiago Braga <tb...@gmail.com>
>>>> wrote:
>>>> > Looking the log and I see an thing:
>>>> >
>>>> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /teste HTTP/1.1" 302
>>>> 301 "-"
>>>> > "lwp-request/5.827 libwww-perl/5.833"
>>>> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /html/directory/test/
>>>> > HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
>>>>
>>>> > Why do it occurs?
>>>>
>>>> The backend server redirected you to add a trailing slash. The proxy
>>>> is supposed to strip off the /html/directory due to ProxypassReverse
>>>> before the redirect goes out, but it doesn't happen.
>>>>
>>>
>>> Look the directive "UseCanonicalName" in the doc of apache:
>>>
>>> "An example where this may be useful is on an intranet server where you
>>> have users connecting to the machine using short names such as www. You'll
>>> notice that if the users type a shortname, and a URL which is a directory,
>>> such as http://www/splat, without the trailing slash then Apache will
>>> redirect them tohttp://www.domain.com/splat/. .... But if
>>> UseCanonicalName is set Off, then Apache will redirect to
>>> http://www/splat/."
>>>
>>> So, when the url /test is called, it's redirected with trailing slash,
>>> but not working with ProxyPass and ProxyPassReverse.
>>>
>>> How do I fix it?
>>>
>>> Thanks!
>>>
>>> --
>>> Atenciosamente,
>>> Tiago Braga Machado
>>>
>>
>
>
> --
> Atenciosamente,
> Tiago Braga Machado
>



-- 
Atenciosamente,
Tiago Braga Machado

Re: [users@httpd] ProxyPass without slash not working

Posted by Tiago Braga <tb...@gmail.com>.
On Thu, Oct 10, 2013 at 4:13 PM, trifo <tr...@gmail.com> wrote:

> maybe a workaround to add the trailing slash automagically using reweite
> rule?
>

I has tried and not works.


> --Trifo
>
> ≈( Telefonról küldve )≈
> On Oct 10, 2013 6:39 PM, "Tiago Braga" <tb...@gmail.com> wrote:
>
>>
>>
>>
>> On Thu, Oct 10, 2013 at 1:11 PM, Eric Covener <co...@gmail.com> wrote:
>>
>>> On Thu, Oct 10, 2013 at 12:03 PM, Tiago Braga <tb...@gmail.com>
>>> wrote:
>>> > Looking the log and I see an thing:
>>> >
>>> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /teste HTTP/1.1" 302
>>> 301 "-"
>>> > "lwp-request/5.827 libwww-perl/5.833"
>>> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /html/directory/test/
>>> > HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
>>>
>>> > Why do it occurs?
>>>
>>> The backend server redirected you to add a trailing slash. The proxy
>>> is supposed to strip off the /html/directory due to ProxypassReverse
>>> before the redirect goes out, but it doesn't happen.
>>>
>>
>> Look the directive "UseCanonicalName" in the doc of apache:
>>
>> "An example where this may be useful is on an intranet server where you
>> have users connecting to the machine using short names such as www. You'll
>> notice that if the users type a shortname, and a URL which is a directory,
>> such as http://www/splat, without the trailing slash then Apache will
>> redirect them tohttp://www.domain.com/splat/. .... But if
>> UseCanonicalName is set Off, then Apache will redirect to
>> http://www/splat/."
>>
>> So, when the url /test is called, it's redirected with trailing slash,
>> but not working with ProxyPass and ProxyPassReverse.
>>
>> How do I fix it?
>>
>> Thanks!
>>
>> --
>> Atenciosamente,
>> Tiago Braga Machado
>>
>


-- 
Atenciosamente,
Tiago Braga Machado

Re: [users@httpd] ProxyPass without slash not working

Posted by trifo <tr...@gmail.com>.
maybe a workaround to add the trailing slash automagically using reweite
rule?

--Trifo

≈( Telefonról küldve )≈
On Oct 10, 2013 6:39 PM, "Tiago Braga" <tb...@gmail.com> wrote:

>
>
>
> On Thu, Oct 10, 2013 at 1:11 PM, Eric Covener <co...@gmail.com> wrote:
>
>> On Thu, Oct 10, 2013 at 12:03 PM, Tiago Braga <tb...@gmail.com>
>> wrote:
>> > Looking the log and I see an thing:
>> >
>> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /teste HTTP/1.1" 302
>> 301 "-"
>> > "lwp-request/5.827 libwww-perl/5.833"
>> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /html/directory/test/
>> > HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
>>
>> > Why do it occurs?
>>
>> The backend server redirected you to add a trailing slash. The proxy
>> is supposed to strip off the /html/directory due to ProxypassReverse
>> before the redirect goes out, but it doesn't happen.
>>
>
> Look the directive "UseCanonicalName" in the doc of apache:
>
> "An example where this may be useful is on an intranet server where you
> have users connecting to the machine using short names such as www. You'll
> notice that if the users type a shortname, and a URL which is a directory,
> such as http://www/splat, without the trailing slash then Apache will
> redirect them tohttp://www.domain.com/splat/. .... But if
> UseCanonicalName is set Off, then Apache will redirect to
> http://www/splat/."
>
> So, when the url /test is called, it's redirected with trailing slash, but
> not working with ProxyPass and ProxyPassReverse.
>
> How do I fix it?
>
> Thanks!
>
> --
> Atenciosamente,
> Tiago Braga Machado
>

Re: [users@httpd] ProxyPass without slash not working

Posted by Tiago Braga <tb...@gmail.com>.
On Thu, Oct 10, 2013 at 1:11 PM, Eric Covener <co...@gmail.com> wrote:

> On Thu, Oct 10, 2013 at 12:03 PM, Tiago Braga <tb...@gmail.com>
> wrote:
> > Looking the log and I see an thing:
> >
> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /teste HTTP/1.1" 302 301
> "-"
> > "lwp-request/5.827 libwww-perl/5.833"
> > 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /html/directory/test/
> > HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
>
> > Why do it occurs?
>
> The backend server redirected you to add a trailing slash. The proxy
> is supposed to strip off the /html/directory due to ProxypassReverse
> before the redirect goes out, but it doesn't happen.
>

Look the directive "UseCanonicalName" in the doc of apache:

"An example where this may be useful is on an intranet server where you
have users connecting to the machine using short names such as www. You'll
notice that if the users type a shortname, and a URL which is a directory,
such as http://www/splat, without the trailing slash then Apache will
redirect them tohttp://www.domain.com/splat/. .... But if UseCanonicalName
is set Off, then Apache will redirect to http://www/splat/."

So, when the url /test is called, it's redirected with trailing slash, but
not working with ProxyPass and ProxyPassReverse.

How do I fix it?

Thanks!

-- 
Atenciosamente,
Tiago Braga Machado

Re: [users@httpd] ProxyPass without slash not working

Posted by Eric Covener <co...@gmail.com>.
On Thu, Oct 10, 2013 at 12:03 PM, Tiago Braga <tb...@gmail.com> wrote:
> Looking the log and I see an thing:
>
> 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /teste HTTP/1.1" 302 301 "-"
> "lwp-request/5.827 libwww-perl/5.833"
> 127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /html/directory/test/
> HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"

> Why do it occurs?

The backend server redirected you to add a trailing slash. The proxy
is supposed to strip off the /html/directory due to ProxypassReverse
before the redirect goes out, but it doesn't happen.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ProxyPass without slash not working

Posted by Tiago Braga <tb...@gmail.com>.
Looking the log and I see an thing:

127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /teste HTTP/1.1" 302 301
"-" "lwp-request/5.827 libwww-perl/5.833"
127.0.0.1 - - [10/Oct/2013:13:00:46 -0300] "GET /html/directory/test/
HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"

Why do it occurs?


On Wed, Oct 9, 2013 at 10:54 AM, Tiago Braga <tb...@gmail.com>wrote:

> Jim,
>
> Do you know what version that fixed? And what the bug?
>
> Thanks!
>
>
>
> On Wed, Oct 9, 2013 at 10:47 AM, Jim Jagielski <ji...@jagunet.com> wrote:
>
>> iirc, this is fixed/addressed in later versions...
>>
>>
>> On Oct 9, 2013, at 8:28 AM, Tiago Braga <tb...@gmail.com> wrote:
>>
>> > Hello!
>> >
>> > I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy.
>> >
>> > I have the below configuration:
>> >
>> > <VirtualHost *:80>
>> >     ServerName www.host.com.br
>> >     ProxyPass / http://static.host.com.br/html/directory/
>> > </VirtualHost>
>> >
>> > When the url is: www.host.com.br/test/
>> > It's works.
>> >
>> > When the url is: www.host.com.br/test
>> > It's not works with the message in the log bellow:
>> >
>> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /test HTTP/1.1" 302 301
>> "-" "lwp-request/5.827 libwww-perl/5.833"
>> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /html/directory/test/
>> HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
>> >
>> > Why?
>> >
>> >
>> >
>> > --
>> > Atenciosamente,
>> > Tiago Braga Machado
>> >
>> >
>> >
>> > --
>> > Atenciosamente,
>> > Tiago Braga Machado
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
> --
> Atenciosamente,
> Tiago Braga Machado
>



-- 
Atenciosamente,
Tiago Braga Machado

Re: [users@httpd] ProxyPass without slash not working

Posted by Tiago Braga <tb...@gmail.com>.
Jim,

Do you know what version that fixed? And what the bug?

Thanks!


On Wed, Oct 9, 2013 at 10:47 AM, Jim Jagielski <ji...@jagunet.com> wrote:

> iirc, this is fixed/addressed in later versions...
>
>
> On Oct 9, 2013, at 8:28 AM, Tiago Braga <tb...@gmail.com> wrote:
>
> > Hello!
> >
> > I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy.
> >
> > I have the below configuration:
> >
> > <VirtualHost *:80>
> >     ServerName www.host.com.br
> >     ProxyPass / http://static.host.com.br/html/directory/
> > </VirtualHost>
> >
> > When the url is: www.host.com.br/test/
> > It's works.
> >
> > When the url is: www.host.com.br/test
> > It's not works with the message in the log bellow:
> >
> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /test HTTP/1.1" 302 301
> "-" "lwp-request/5.827 libwww-perl/5.833"
> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /html/directory/test/
> HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
> >
> > Why?
> >
> >
> >
> > --
> > Atenciosamente,
> > Tiago Braga Machado
> >
> >
> >
> > --
> > Atenciosamente,
> > Tiago Braga Machado
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
Atenciosamente,
Tiago Braga Machado

Re: [users@httpd] ProxyPass without slash not working

Posted by Jim Jagielski <ji...@jaguNET.com>.
iirc, this is fixed/addressed in later versions...


On Oct 9, 2013, at 8:28 AM, Tiago Braga <tb...@gmail.com> wrote:

> Hello!
> 
> I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy.
> 
> I have the below configuration:
> 
> <VirtualHost *:80>
>     ServerName www.host.com.br
>     ProxyPass / http://static.host.com.br/html/directory/
> </VirtualHost>
> 
> When the url is: www.host.com.br/test/
> It's works.
> 
> When the url is: www.host.com.br/test
> It's not works with the message in the log bellow:
> 
> 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /test HTTP/1.1" 302 301 "-" "lwp-request/5.827 libwww-perl/5.833"
> 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /html/directory/test/ HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
> 
> Why?
> 
> 
> 
> -- 
> Atenciosamente,
> Tiago Braga Machado
> 
> 
> 
> -- 
> Atenciosamente,
> Tiago Braga Machado


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ProxyPass without slash not working

Posted by Tiago Braga <tb...@gmail.com>.
Vivek,

Yes, the setting was in conf/httpd.conf, but i put in my vhost e not
working too.

ProxyRequests off
ProxyPass / http://static.host.com.br/html/directory/
ProxyPassReverse / http://static.host.com.br/html/directory/

On Wed, Oct 9, 2013 at 10:27 AM, Vivek Nambiar <vi...@gmail.com>wrote:

> Tiago,
>
> Did you try by setting ProxyRequest to off?.As per Apache doc,The
> ProxyRequests<http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyrequests> directive
> should usually be set *off* when using ProxyPass.
>
> Thx
>
>
> On Wed, Oct 9, 2013 at 6:08 PM, Tiago Braga <tb...@gmail.com>wrote:
>
>> Hello Eric,
>>
>> It not works too.
>>
>> ProxyPass / http://static.host.com.br/html/directory/
>> ProxyPassReverse / http://static.host.com.br/html/directory/
>>
>> Thanks!
>>
>>
>> On Wed, Oct 9, 2013 at 9:34 AM, Eric Covener <co...@gmail.com> wrote:
>>
>>> Missing ProxyPassReverse.
>>>
>>> On Wed, Oct 9, 2013 at 8:28 AM, Tiago Braga <tb...@gmail.com>
>>> wrote:
>>> > Hello!
>>> >
>>> > I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy.
>>> >
>>> > I have the below configuration:
>>> >
>>> > <VirtualHost *:80>
>>> >     ServerName www.host.com.br
>>> >     ProxyPass / http://static.host.com.br/html/directory/
>>> > </VirtualHost>
>>> >
>>> > When the url is: www.host.com.br/test/
>>> > It's works.
>>> >
>>> > When the url is: www.host.com.br/test
>>> > It's not works with the message in the log bellow:
>>> >
>>> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /test HTTP/1.1" 302
>>> 301 "-"
>>> > "lwp-request/5.827 libwww-perl/5.833"
>>> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /html/directory/test/
>>> > HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
>>> >
>>> > Why?
>>> >
>>> >
>>> >
>>> > --
>>> > Atenciosamente,
>>> > Tiago Braga Machado
>>> >
>>> >
>>> >
>>> > --
>>> > Atenciosamente,
>>> > Tiago Braga Machado
>>>
>>>
>>>
>>> --
>>> Eric Covener
>>> covener@gmail.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>
>>
>> --
>> Atenciosamente,
>> Tiago Braga Machado
>>
>
>


-- 
Atenciosamente,
Tiago Braga Machado

Re: [users@httpd] ProxyPass without slash not working

Posted by Vivek Nambiar <vi...@gmail.com>.
Tiago,

Did you try by setting ProxyRequest to off?.As per Apache doc,The
ProxyRequests<http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyrequests>
directive
should usually be set *off* when using ProxyPass.

Thx


On Wed, Oct 9, 2013 at 6:08 PM, Tiago Braga <tb...@gmail.com> wrote:

> Hello Eric,
>
> It not works too.
>
> ProxyPass / http://static.host.com.br/html/directory/
> ProxyPassReverse / http://static.host.com.br/html/directory/
>
> Thanks!
>
>
> On Wed, Oct 9, 2013 at 9:34 AM, Eric Covener <co...@gmail.com> wrote:
>
>> Missing ProxyPassReverse.
>>
>> On Wed, Oct 9, 2013 at 8:28 AM, Tiago Braga <tb...@gmail.com>
>> wrote:
>> > Hello!
>> >
>> > I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy.
>> >
>> > I have the below configuration:
>> >
>> > <VirtualHost *:80>
>> >     ServerName www.host.com.br
>> >     ProxyPass / http://static.host.com.br/html/directory/
>> > </VirtualHost>
>> >
>> > When the url is: www.host.com.br/test/
>> > It's works.
>> >
>> > When the url is: www.host.com.br/test
>> > It's not works with the message in the log bellow:
>> >
>> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /test HTTP/1.1" 302 301
>> "-"
>> > "lwp-request/5.827 libwww-perl/5.833"
>> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /html/directory/test/
>> > HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
>> >
>> > Why?
>> >
>> >
>> >
>> > --
>> > Atenciosamente,
>> > Tiago Braga Machado
>> >
>> >
>> >
>> > --
>> > Atenciosamente,
>> > Tiago Braga Machado
>>
>>
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
> --
> Atenciosamente,
> Tiago Braga Machado
>

Re: [users@httpd] ProxyPass without slash not working

Posted by Tiago Braga <tb...@gmail.com>.
Hello Eric,

It not works too.

ProxyPass / http://static.host.com.br/html/directory/
ProxyPassReverse / http://static.host.com.br/html/directory/

Thanks!


On Wed, Oct 9, 2013 at 9:34 AM, Eric Covener <co...@gmail.com> wrote:

> Missing ProxyPassReverse.
>
> On Wed, Oct 9, 2013 at 8:28 AM, Tiago Braga <tb...@gmail.com>
> wrote:
> > Hello!
> >
> > I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy.
> >
> > I have the below configuration:
> >
> > <VirtualHost *:80>
> >     ServerName www.host.com.br
> >     ProxyPass / http://static.host.com.br/html/directory/
> > </VirtualHost>
> >
> > When the url is: www.host.com.br/test/
> > It's works.
> >
> > When the url is: www.host.com.br/test
> > It's not works with the message in the log bellow:
> >
> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /test HTTP/1.1" 302 301
> "-"
> > "lwp-request/5.827 libwww-perl/5.833"
> > 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /html/directory/test/
> > HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
> >
> > Why?
> >
> >
> >
> > --
> > Atenciosamente,
> > Tiago Braga Machado
> >
> >
> >
> > --
> > Atenciosamente,
> > Tiago Braga Machado
>
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
Atenciosamente,
Tiago Braga Machado

Re: [users@httpd] ProxyPass without slash not working

Posted by Eric Covener <co...@gmail.com>.
Missing ProxyPassReverse.

On Wed, Oct 9, 2013 at 8:28 AM, Tiago Braga <tb...@gmail.com> wrote:
> Hello!
>
> I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy.
>
> I have the below configuration:
>
> <VirtualHost *:80>
>     ServerName www.host.com.br
>     ProxyPass / http://static.host.com.br/html/directory/
> </VirtualHost>
>
> When the url is: www.host.com.br/test/
> It's works.
>
> When the url is: www.host.com.br/test
> It's not works with the message in the log bellow:
>
> 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /test HTTP/1.1" 302 301 "-"
> "lwp-request/5.827 libwww-perl/5.833"
> 127.0.0.1 - - [08/Oct/2013:18:14:28 -0300] "GET /html/directory/test/
> HTTP/1.1" 404 594 "-" "lwp-request/5.827 libwww-perl/5.833"
>
> Why?
>
>
>
> --
> Atenciosamente,
> Tiago Braga Machado
>
>
>
> --
> Atenciosamente,
> Tiago Braga Machado



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org