• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache-Jboss redirection

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have an apache webserver that needs to redirect requests coming to it to a jboss server running on a different machine. The requests passin in a "searchType" request param. THe issue I am having is with redirecting the request to the jboss server, whule trying to capture the request parameter dynamically.
To clarify :

The following works:
RewriteRule /my/search http://jboss-server:8080/my/search?searchType=SEARCH_VALUE

But the following does not work
RewriteRule /my/search http://jboss-server:8080/my/search?searchType=$1

I would like to know how to capture that value dynamically.
Not sure if this is right forum. If not, sorry... But please please help! Been stuck for more than 4 hours on this.

Thanks
KArthik
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic