• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Rewrite URL from Apache to Tomcat

Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I used "mod_rewrite" to redirect the request from Apache HTTP Server (Running on x.acme.com & port 80) to backend Tomcat(Running on z.toyz.com & port 8082) and it works.

Below is my configuration in Apache's httpd.conf file.

On the web browser when i hit "x.acme.com" i get this "http://z.toyz.com:8082/SessionTest/index.jsp" which is desired.

I would however like to hide URL "http://z.toyz.com:8082/SessionTest/index.jsp" on the client web browser(end user) and instead show him either

1. x.acme.com


2. x.acme.com/SessionTest/index.jsp

Please let me know what change should I do in my httpd.conf file ?
    Bookmark Topic Watch Topic
  • New Topic