You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Melanie Pfefer <me...@yahoo.co.uk> on 2008/03/27 13:35:53 UTC

[users@httpd] url redirection

Hi,

How to redirect urls that contains ‘jar’ string from

http://zeus:8085/web/sec:jar:0000001
to
http://zeus:8086/src/web:sec:jar:0000001

the first one is on apache
the 2nd web app is on tomcat

thanks bunches



      __________________________________________________________
Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
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] url redirection

Posted by Melanie Pfefer <me...@yahoo.co.uk>.
hello,

changing to [P] flag:
 RewriteRule ^/(.*web:jar.*) http://zeus:8086/src/$1
[P]

returns a page cannot be displayed.

This is when apache redirects to a tomcat. Why P flag
does not work in this redirection? Could it be that
tomcat needs additional configuration to accept Proxy?

thanks
--- Melanie Pfefer <me...@yahoo.co.uk> wrote:

> things are ok now with this rewrite rule
> 
> RewriteRule ^/(.*web:jar.*) http://zeus:8086/src/$1
> [R=301,L]
> 
> I wanted to have 'jar' as pattern but couldn't do
> it.
> 
> If someone can help, I appreciate.
> 
> --- Melanie Pfefer <me...@yahoo.co.uk>
> wrote:
> 
> > I tried this
> > 
> > RewriteEngine On
> > RewriteRule ^/(.*jar.*) http://zeus:8086/src/$1
> > [R=301,L]
> > 
> > However
> > http://zeus/web:jar:0000001
> > becomes
> > http://zeus:8086/src/web:jar:/web:jar:0000001
> > 
> > while I want it to be
> > 
> > http://zeus:8086/src/web:jar:0000001
> > 
> > could you please advise?
> > thanks
> > 
> > 
> > 
> > 
> > 
> > 
> > --- Mathew <ma...@gmail.com> wrote:
> > 
> > > The last time I had to configure something for
> > > tomcat I used proxy settings.  I don't have
> access
> > > to this information right now otherwise I'd give
> > an
> > > example of what I did but I'm sure you can find
> > > something on Google.
> > > 
> > > Mathew
> > > 
> > > Melanie Pfefer wrote:
> > > > Hi,
> > > > 
> > > > How to redirect urls that contains �jar�
> > > string from
> > > > 
> > > > http://zeus:8085/web/sec:jar:0000001
> > > > to
> > > > http://zeus:8086/src/web:sec:jar:0000001
> > > > 
> > > > the first one is on apache
> > > > the 2nd web app is on tomcat
> > > > 
> > > > thanks bunches
> > > > 
> > > > 
> > > > 
> > > >      
> > >
> >
>
__________________________________________________________
> > > > Sent from Yahoo! Mail.
> > > > More Ways to Keep in Touch.
> > > http://uk.docs.yahoo.com/nowyoucan.html
> > > > 
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > 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
> > > > 
> > > 
> > > -- 
> > > Keep up with my goings on at
> > > http://theillien.blogspot.com
> > > 
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > 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
> > > 
> > > 
> > 
> > 
> > 
> >      
> >
>
___________________________________________________________
> > 
> > Yahoo! For Good helps you make a difference  
> > 
> > http://uk.promotions.yahoo.com/forgood/
> > 
> >
>
---------------------------------------------------------------------
> > 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
> > 
> > 
> 
> 
> 
>      
>
___________________________________________________________
> 
> Yahoo! For Good helps you make a difference  
> 
> http://uk.promotions.yahoo.com/forgood/
> 
>
---------------------------------------------------------------------
> 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
> 
> 



      __________________________________________________________
Sent from Yahoo! Mail.
More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
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] url redirection

Posted by Melanie Pfefer <me...@yahoo.co.uk>.
things are ok now with this rewrite rule

RewriteRule ^/(.*web:jar.*) http://zeus:8086/src/$1
[R=301,L]

I wanted to have 'jar' as pattern but couldn't do it.

If someone can help, I appreciate.

--- Melanie Pfefer <me...@yahoo.co.uk> wrote:

> I tried this
> 
> RewriteEngine On
> RewriteRule ^/(.*jar.*) http://zeus:8086/src/$1
> [R=301,L]
> 
> However
> http://zeus/web:jar:0000001
> becomes
> http://zeus:8086/src/web:jar:/web:jar:0000001
> 
> while I want it to be
> 
> http://zeus:8086/src/web:jar:0000001
> 
> could you please advise?
> thanks
> 
> 
> 
> 
> 
> 
> --- Mathew <ma...@gmail.com> wrote:
> 
> > The last time I had to configure something for
> > tomcat I used proxy settings.  I don't have access
> > to this information right now otherwise I'd give
> an
> > example of what I did but I'm sure you can find
> > something on Google.
> > 
> > Mathew
> > 
> > Melanie Pfefer wrote:
> > > Hi,
> > > 
> > > How to redirect urls that contains �jar�
> > string from
> > > 
> > > http://zeus:8085/web/sec:jar:0000001
> > > to
> > > http://zeus:8086/src/web:sec:jar:0000001
> > > 
> > > the first one is on apache
> > > the 2nd web app is on tomcat
> > > 
> > > thanks bunches
> > > 
> > > 
> > > 
> > >      
> >
>
__________________________________________________________
> > > Sent from Yahoo! Mail.
> > > More Ways to Keep in Touch.
> > http://uk.docs.yahoo.com/nowyoucan.html
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > 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
> > > 
> > 
> > -- 
> > Keep up with my goings on at
> > http://theillien.blogspot.com
> > 
> > 
> >
>
---------------------------------------------------------------------
> > 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
> > 
> > 
> 
> 
> 
>      
>
___________________________________________________________
> 
> Yahoo! For Good helps you make a difference  
> 
> http://uk.promotions.yahoo.com/forgood/
> 
>
---------------------------------------------------------------------
> 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
> 
> 



      ___________________________________________________________ 
Yahoo! For Good helps you make a difference  

http://uk.promotions.yahoo.com/forgood/

---------------------------------------------------------------------
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] url redirection

Posted by Melanie Pfefer <me...@yahoo.co.uk>.
I tried this

RewriteEngine On
RewriteRule ^/(.*jar.*) http://zeus:8086/src/$1
[R=301,L]

However
http://zeus/web:jar:0000001
becomes
http://zeus:8086/src/web:jar:/web:jar:0000001

while I want it to be

http://zeus:8086/src/web:jar:0000001

could you please advise?
thanks






--- Mathew <ma...@gmail.com> wrote:

> The last time I had to configure something for
> tomcat I used proxy settings.  I don't have access
> to this information right now otherwise I'd give an
> example of what I did but I'm sure you can find
> something on Google.
> 
> Mathew
> 
> Melanie Pfefer wrote:
> > Hi,
> > 
> > How to redirect urls that contains �jar�
> string from
> > 
> > http://zeus:8085/web/sec:jar:0000001
> > to
> > http://zeus:8086/src/web:sec:jar:0000001
> > 
> > the first one is on apache
> > the 2nd web app is on tomcat
> > 
> > thanks bunches
> > 
> > 
> > 
> >      
>
__________________________________________________________
> > Sent from Yahoo! Mail.
> > More Ways to Keep in Touch.
> http://uk.docs.yahoo.com/nowyoucan.html
> > 
> >
>
---------------------------------------------------------------------
> > 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
> > 
> 
> -- 
> Keep up with my goings on at
> http://theillien.blogspot.com
> 
> 
>
---------------------------------------------------------------------
> 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
> 
> 



      ___________________________________________________________ 
Yahoo! For Good helps you make a difference  

http://uk.promotions.yahoo.com/forgood/

---------------------------------------------------------------------
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] url redirection

Posted by Mathew <ma...@gmail.com>.
The last time I had to configure something for tomcat I used proxy settings.  I don't have access to this information right now otherwise I'd give an example of what I did but I'm sure you can find something on Google.

Mathew

Melanie Pfefer wrote:
> Hi,
> 
> How to redirect urls that contains �jar� string from
> 
> http://zeus:8085/web/sec:jar:0000001
> to
> http://zeus:8086/src/web:sec:jar:0000001
> 
> the first one is on apache
> the 2nd web app is on tomcat
> 
> thanks bunches
> 
> 
> 
>       __________________________________________________________
> Sent from Yahoo! Mail.
> More Ways to Keep in Touch. http://uk.docs.yahoo.com/nowyoucan.html
> 
> ---------------------------------------------------------------------
> 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
> 

-- 
Keep up with my goings on at http://theillien.blogspot.com


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