Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat server name issues

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We use a cdn to deliver our site via a url (origin-www.host.com), when tomcat receives these requests and redirects them the CDN passes that along to the client, which then begins using that server name.

Anyone know of a good way to force tomcat to use a certain server name. I would write a custom Valve but the redirect that is giving me issues is the directory trailing slash one that happens way early in the lifecycle.

It is very likely the CDN can take care of this for us, just thought someone would else might have an idea.
 
Arvind Subramanian
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont know the exact solution, but you can able to achieve this via server.xml. Since we can able to filter the request based on incoming url. I hope you can use this to achieve what you desired...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic