RE: Bind webapp to virtual host

2004-03-22 Thread Adam Fowler
Not sure if its been asked before but...

JBoss has the file:

jboss/server/default/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml

that contains the Tomcat server.xml file. Just edit this and add two Host
entries as described here:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

If you want that deployed you'd prolly have to create a modified
jbossweb-tomcat.sar file and deploy that. I'm afraid I have no idea how to
do this (yet, I have to do this soon at work!)

Hope that helps (and works, else I'm stuffed!).

Adam.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 22 March 2004 17:12
To: [EMAIL PROTECTED]
Subject: Bind webapp to virtual host


Hi all,

Sorry if this has been asked a million times before. 

Is it possible to bind a webapp to a specific virtualhost. So something 
like:

www.myhost1.com --- /webapp1.war
www.myhost2.com --- /webapp2.war

And if so, how can this be achieved? Especially, if I use the integrated 
Tomcat in JBoss (3.2.3) and the packages are in an ear file.

So something like this:

www.myhost1.com --- /myear.ear/webapp1.war

Regards,

Harm de Laat
Informatiefabriek
The netherlands.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Bind webapp to virtual host

2004-03-22 Thread harm
Thanks for your quick response...

Unfortunatly this does not work...

If I add a host entry I get the message:
docBase has to be a WAR file

I think it might complain because I used a exploded (unzipped) variant of 
my package.

But, when i add something like this:

host name=www.myhost1.com docBase=jmx-console.war/

Then i still get the same message

The JMX console is for sure a valid WAR archive!

Any suggestions?

Regards,

Harm de Laat
Informatiefabriek
The Netherlands






Adam Fowler [EMAIL PROTECTED] 
22-03-2004 18:21
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
'Tomcat Users List' [EMAIL PROTECTED]
cc

Subject
RE: Bind webapp to virtual host






Not sure if its been asked before but...

JBoss has the file:

jboss/server/default/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml

that contains the Tomcat server.xml file. Just edit this and add two Host
entries as described here:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

If you want that deployed you'd prolly have to create a modified
jbossweb-tomcat.sar file and deploy that. I'm afraid I have no idea how to
do this (yet, I have to do this soon at work!)

Hope that helps (and works, else I'm stuffed!).

Adam.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 22 March 2004 17:12
To: [EMAIL PROTECTED]
Subject: Bind webapp to virtual host


Hi all,

Sorry if this has been asked a million times before. 

Is it possible to bind a webapp to a specific virtualhost. So something 
like:

www.myhost1.com --- /webapp1.war
www.myhost2.com --- /webapp2.war

And if so, how can this be achieved? Especially, if I use the integrated 
Tomcat in JBoss (3.2.3) and the packages are in an ear file.

So something like this:

www.myhost1.com --- /myear.ear/webapp1.war

Regards,

Harm de Laat
Informatiefabriek
The netherlands.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]