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 / March 2004

Tip: Looking for answers? Try searching our database.

Virtual host with JBoss/Jetty

Thread view: 
K S Aldebaraan - 16 Mar 2004 18:47 GMT
I have two war archives that I've deployed successfully to my server,
and have now registered two domain names, that I want to point to each
separately.  I've tried adding to the httpd.conf to specify them, but
I'm not sure of the paths because of how the wars are deployed.  I've
also tried adding the following line to the WEB-INF/web.xml file:

<virtual-host>new.domain.here</virtual-host>

Neither of these have worked, and I don't know that I'm working in the
right places.  I've noticed quite a bit more information out there
about Tomcat, but I really don't have the option of switching (not my
decision).  Where do I need to place my virtual host info?
K S Aldebaraan - 18 Mar 2004 06:49 GMT
> I have two war archives that I've deployed successfully to my server,
> and have now registered two domain names, that I want to point to each
[quoted text clipped - 8 lines]
> about Tomcat, but I really don't have the option of switching (not my
> decision).  Where do I need to place my virtual host info?

Actually, I've now created a jboss-web.xml file in my WEB-INF
directory with the following content:

<jboss-web>
   <context-root>/</context-root>
   <virtual-host>new.domain.here</virtual-host>
</jboss-web>

But I've found that I can only get to my website when I go to
new.domain.here/webroot

I've tried other context-root paths, but all of them increase the
amount of things I have to put after the domain name (like adding
/webroot/ only makes it work when i go to
new.domain.here/webroot/webroot)  How does the context-root path work?


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.