Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Tomcat rediretion - Domain

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

Currently for my project I have registered 2 domain addresses on the same IP. But now, I would like to redirect one of this domain to the other one. I am using Tomcat

My two domains :
a.domain.com
b.domain.com

So when the user will enter a.domain.com, I want to see/being redirected to b.domain.com (both domain are pointing on the same webapp).
How can I do that ?

I tried with Aliases but it does not seemed to work - I probably did not configured the server.xml properly lol

Thanks for your help
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jules poit wrote:I tried with Aliases but it does not seemed to work - I probably did not configured the server.xml properly



You are probably right, but it is hard to tell without seeing your server.xml
 
jules poit
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes

The solution right know I implemented is the following, we already have a little java script routine for google analytic, so it is on every page, and what I had is just that :



it is working perfectly.

My server.xml is the following :



I removed the virtual host/alias stuff lol Any idea what I should put in the server.xml to make it work this way ?

Thanks for your help !
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic