Sounds like this is beyond the scope of Tomcat configuration, since
the hostname will be resolved by DNS at the client regardless of
what webserver is actually running on that host.
Assuming you have DNS issues already worked out though, you could
easily just redirect to the desired url by using some JavaScript in
a default HTML page on your host. Something like:
var loc = window.location.toString();
if (loc.indexOf("www.somedomain.com") != -1)
window.location = "http://www.somedomain.com/flexapp1";
else if (loc.indexOf("ww2.somedomain.com") != -1)
window.location = "http://www.somedomain.com/flexapp2";
else if (loc.indexOf("ww3.somedomain.com") != -1)
window.location = "http://www.somedomain.com/flexapp3";
You'll have other issues even with this approach, though; domain
names might be entered by the user in mixed case, or the IP address
might be used instead of the hostname, and probably many others.
--- In [email protected], "hank williams" <[EMAIL PROTECTED]>
wrote:
>
> I have a three flex applications that live under one FDS web app.
>
> Imagine a directory structure as follows
>
> webapps
> mainFDSAppName
> flexapp1
> flexapp2
> flexapp3
>
>
> I want to be able to say
>
> www.somedomain.com points to flexapp1
> ww2.somedomain.com points to flexapp2
> ww3.somedomain.com points to flexapp3
>
>
> My system administrator is telling me that tomcat will not allow an
> app to be at a deeper level than at the top of the webapps
directory
> without additional path information. This means that I could make
an
> app inside mainFDSAppName be www.somdomain.com but flexapp1 has to
be
> www.somedomain.com/flexapp1.
>
> I know that the www, ww1 and ww2 require additional CNAMEs. That is
> not the issue. The issue is whether I can using some combination of
> CNAME and other tomcat configurations to make the nice url's
described
> above. I also want to do something that will allow me to not do
extra
> work every time I want to build and/or deploy my app.
>
> Hank
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/