• 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

Parked domains and JSP

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm pretty new to JSP, and I have a problem with my parked domains and Tomcat. Basically, I've been told that tomcat does not deal very well with more than one domain and I need to write a servlet which will deal with the problem for me.
Question is: How do I write a JSP or servlet that will redirect users to the main domain if they type in a parked domain?
e.g. www.informavores.com -> www.informavores.us
As it stands now, if I type in www.informavores.com (the parked domain), I get 'Apache Tomcat/4.0.3 - HTTP Status 404 - /index.jsp', but if I type in www.informavores.us, I get my page as expected. They both point to the same place.
Any help is greatly appreciated.
Cheers,
Steve
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might have better luck in the Apache/Tomcat forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic