Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

[TOMCAT] shared context?

Thread view: 
Qba - 03 Dec 2005 12:17 GMT
Hello

I have a problem: I heve mappd the same application into two different VHosts

I feel that sth is wrong with app - it looks like if I the separate context was created for two of these vhosts thus application behaves not properly.
Is it possible? What shall I do to fix it.

thx
Kuba
Tim Terry - 03 Dec 2005 13:51 GMT
> Hello
>
[quoted text clipped - 5 lines]
> thx
> Kuba
if you need your app to run in the same context for two virtual hosts,
you could try creating one host element in your config and use an alias
element. As using two host elements will run your application in
different contexts
for example:

<Host name="virtualHost1" ...>
 <Alias>virtualHost2</Alias>
</Host>

(see
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Host%20Name%20Aliases)

worth a go, never tested it.

Tim
Qba - 03 Dec 2005 14:37 GMT
Many thanks!

I will surely try.

regards
Kuba
Qba - 03 Dec 2005 14:54 GMT
It worked!
Many thanks
Kuba


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.