• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Skinning a webapp using Virtual hosts

 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been tasked with finding a solution to the following problem

We have multiple customers, each of whom want an individual look/feel on their site. This will be done via css/images.
There should only be one copy of the webapp WAR deployed
Each of the sites will have its own unique URL.

The server should be smart enough to look at the url, use the WAR for some things, and look at a customised copy of things like css and images for another.

I have been told that Tomcat will do this, but can't find any reference to it in the docs. I have found the section on [url http://tomcat.apache.org/tomcat-5.0-doc/config/host.html#Host%20Name%20Aliases]host name aliases[/url] but it doesn't seem to be quite right - mapping multiple urls to the same war where we want some of the files to be different.

We are currently using JBoss4.0 which is using Tomcat5 under the hood. I have tried looking up virtual hosts, but that seems the same as Tomcat Hostname aliases.

Can anybody shed any light on this subject?
Any references I should look at?
I'm not sure that the request is possible, or is it possible maybe with the addition of Apache Webserver into the equation?

Thanks,
evnafets
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic