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

2013-10-10 Thread Tiago Braga
Sorry, I put the wrong example, below the correct: ProxyPassMatch ^/(.*) http://static.host.com.br/html/directory ProxyPassReverse / /html/directory/ But, When the url is /anythig It's redirected to /anything/ with 302. But I would like with 301. How

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

2013-10-10 Thread Tiago Braga
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 wrote: > On Thu, Oct 10, 2013 at 4:13 PM, trifo wrote: > >> maybe a work

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

2013-10-10 Thread Tiago Braga
On Thu, Oct 10, 2013 at 4:13 PM, trifo 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" wrote: > >> >> >> >> On Thu, Oct 10, 2013 at 1:11 PM, Er

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

2013-10-10 Thread trifo
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" wrote: > > > > On Thu, Oct 10, 2013 at 1:11 PM, Eric Covener wrote: > >> On Thu, Oct 10, 2013 at 12:03 PM, Tiago Braga >> wrote: >> > Looking t

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

2013-10-10 Thread Tiago Braga
On Thu, Oct 10, 2013 at 1:11 PM, Eric Covener wrote: > On Thu, Oct 10, 2013 at 12:03 PM, Tiago Braga > 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 - -

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

2013-10-10 Thread Eric Covener
On Thu, Oct 10, 2013 at 12:03 PM, Tiago Braga 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" 40

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

2013-10-10 Thread Tiago Braga
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

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

2013-10-09 Thread Tiago Braga
Jim, Do you know what version that fixed? And what the bug? Thanks! On Wed, Oct 9, 2013 at 10:47 AM, Jim Jagielski wrote: > iirc, this is fixed/addressed in later versions... > > > On Oct 9, 2013, at 8:28 AM, Tiago Braga wrote: > > > Hello! > > > > I'm using the httpd Apache/2.2.15 in Linux

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

2013-10-09 Thread Jim Jagielski
iirc, this is fixed/addressed in later versions... On Oct 9, 2013, at 8:28 AM, Tiago Braga wrote: > Hello! > > I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy. > > I have the below configuration: > > > ServerName www.host.com.br > ProxyPass / http://static.host.com.

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

2013-10-09 Thread Tiago Braga
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 wrote: > Tiago, > > Did yo

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

2013-10-09 Thread Vivek Nambiar
Tiago, Did you try by setting ProxyRequest to off?.As per Apache doc,The ProxyRequests directive should usually be set *off* when using ProxyPass. Thx On Wed, Oct 9, 2013 at 6:08 PM, Tiago Braga wrote: > Hello Eric, > > It not

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

2013-10-09 Thread Tiago Braga
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 wrote: > Missing ProxyPassReverse. > > On Wed, Oct 9, 2013 at 8:28 AM, Tiago Braga > wrote: >

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

2013-10-09 Thread Eric Covener
Missing ProxyPassReverse. On Wed, Oct 9, 2013 at 8:28 AM, Tiago Braga wrote: > Hello! > > I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy. > > I have the below configuration: > > > ServerName www.host.com.br > ProxyPass / http://static.host.com.br/html/directory/ > > >

[users@httpd] ProxyPass without slash not working

2013-10-09 Thread Tiago Braga
Hello! I'm using the httpd Apache/2.2.15 in Linux RedHat with mod_proxy. I have the below configuration: ServerName www.host.com.br ProxyPass / http://static.host.com.br/html/directory/ When the url is: www.host.com.br/test/ It's works. When the url is: www.host.com.br/test It's not