Re: Virtual host configuration

2005-04-08 Thread Pete Stevens
On Thu, 7 Apr 2005, Darryl Wilburn wrote:

> Greetins all,
> New to Tomcat/Apache  Implemented Tomcat 4.1.29 to support an
> application that required an application server.  I'm migrating the
> application from an existing NT 4.0 system and would like to implement it
> as a virtual host on the Win2003 server running Tomcat.  (Unfortunately,
> the app does not support non-Win hosts)  Anyway, I'd like to define the
> starting point of the virtual host as a directory that is 3 levels below
> "webapps".  In other words, I want the users to see the site as
> http://hostname, instead http://hostname/folder1/folder2/folder3. (folder3
>
> being the desired "home" directory)

This explains how to do it for virtual hosts one level deep. Three is a simple
extension.

http://www.ex-parrot.com/~pete/tomcat-vhost.html

Pete Stevens

--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

 "We agree it[the gas bill] was rather high for the time of year. It's possible
   Mr Purdey has been charged for the gas used up during the explosion that
  destroyed his house."
-- North West Gas Spokesman

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



Virtual host configuration

2005-04-07 Thread Darryl Wilburn
Greetins all,
New to Tomcat/Apache  Implemented Tomcat 4.1.29 to support an 
application that required an application server.  I'm migrating the 
application from an existing NT 4.0 system and would like to implement it 
as a virtual host on the Win2003 server running Tomcat.  (Unfortunately, 
the app does not support non-Win hosts)  Anyway, I'd like to define the 
starting point of the virtual host as a directory that is 3 levels below 
"webapps".  In other words, I want the users to see the site as 
http://hostname, instead http://hostname/folder1/folder2/folder3. (folder3 

being the desired "home" directory)

Thanks
DW

RE: Virtual Host configuration in Tomcat

2004-07-29 Thread Stephan Kühn
T

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 29. Juli 2004 10:50
To: [EMAIL PROTECTED]
Subject: RE: Virtual Host configuration in Tomcat




Hi all,
i need to configure virtual hosting on tomcat 5.0

what I would like to do, is when I enter  http://localhost:8080   it
behaves
exactly like when I enter http://localhost:8080/myapp

can anyone give me some hints?

Thanx in advance and regards
Marco




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




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



RE: Virtual Host configuration in Tomcat

2004-07-29 Thread Marco Mistroni



Hi all,
i need to configure virtual hosting on tomcat 5.0

what I would like to do, is when I enter  http://localhost:8080   it
behaves
exactly like when I enter http://localhost:8080/myapp

can anyone give me some hints?

Thanx in advance and regards
Marco




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



Virtual host configuration

2003-12-02 Thread shyamperi
7:21p
How is that I can configure my virtual host to be a deployable. In the sense, I would 
like it to be deployable with out stopping the server
Here is my server.xml and made necessary setting in the apache server also.
   

 
 
  
But the problem with this I am unable to deploy the contents dynamically. When I 
reload or redeploy the "[/]" I get a message " no context found ".
Can any body help me out with this

-
Warm Regards
Shÿam Peri

II Floor, Punja Building,
M.G.Road,
Ballalbagh,
Mangalore-575003 
Ph : 91-824-2451001/5
Fax : 91-824-2451050 





Original Message--

Thank Jean...

Basu.
- Original Message -
From: "Jeanfrancois Arcand" 
To: "Tomcat Users List" 
Sent: Monday, December 01, 2003 9:12 PM
Subject: Re: endorsed directory


> See
> http://java.sun.com/j2se/1.4.1/docs/guide/standards/
>
> -- Jeanfrancois
>
>
> Basavaraju P. Banakar [SLK-India] wrote:
>
> >Hey all,
> >
> >I found from the tomcat users list that xalan.jar has to be placed
in the
> >"..\common\endorsed" folder.
> >
> >but i could'nt find reason behind that...
> >
> >could someone help in understanding this please..
> >
> >This might not be the right place to ask this question but might be
releated
> >with the above reason...
> >Why do we need to create "endorsed" directory?
> >
> >Thanks,
> >Basu.
> >
> >
>
>-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail:
[EMAIL PROTECTED]
> >
> >
> >
> >
>
>
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


DISCLAIMER: This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended
recipient you should not disseminate,distribute,store,print, copy or
deliver this message.Please notify the sender immediately by e-mail if
you have received this e-mail by mistake and delete this e-mail from
your system.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: VIRTUAL HOST CONFIGURATION

2002-12-04 Thread Noel J. Bergman
> i have seen a lot of controversy on this ml
> about WarpConnector.

If you read the CVS for mod_webapp, you'll find that the author deprecates
its current use: "Lately there have been some improvements on [alternatives
to WebApp], and probably, if you're wondering why you want to try out
WebApp, you should really stop reading now, and go and download something
else."  The docs add "mod_jk is the same of the WebApp module, if you're
wondering why you should be using the latter instead of the former, well, I
believe I already answered this question (forget about WebApp)."

[ref:
http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/webapp/docs/index.xm
l?rev=1.3&content-type=text/vnd.viewcvs-markup]

By the way, has anyone ever asked you nicely to stop quoting entire messages
and placing your replies at the bottom?

--- Noel


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: VIRTUAL HOST CONFIGURATION

2002-12-03 Thread karthikeyan.balasubramanian
Hi David  Brown,

  Thanks for your kind reply.  Let me explore further on Warp, if things
didnt go well  can I have your snippets of httpd.conf and server.xml file
and some explanation on how to host lots of domain in different directory
/home/userhomedirectory and some optimization tips.

  Thanks once again.

karthikeyan.
- Original Message -
From: "David Brown" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 10:49 PM
Subject: Re: VIRTUAL HOST CONFIGURATION


>
> karthikeyan.balasubramanian writes:
>
> > Hi All,
> >
> >   I have sucessfully integarated Apache with Tomcat using WarpConnecter.
But how do i go about from here to implement lots of Virtual Host for our
clients.  I  need to setup atleast 5 virtual hosts.  I couldnt actually
figure a way to host 5 real domains with JSP and Servlet support.
> >
> >   What are all the changes I need to do in the Httpd.conf and
Server.xml.  I dont want to keep users folder under
> > TOMCATHOME/Webapps/UserContext it will be under
/usr/home/users-home-directory.
> >
> >   Can anybody help me out on this.  If somebody out here who have hosted
some real domains rather then localhost thing
> > please advice.
> >
> >   Looking forward for yours response.
> >
> > karthikeyan.
>
>
> Hello, i'm hosting 4 public virtual domains. i am using mod_jk w/ apache
and
> JkMount in httpd.conf and the ajp13 connector. i have many servlets, java
> beans and jsp running in different protected application context
> directories, jdbc connection to oracle, etc. this works 4 me. i know about
> the WarpConnector but have not used it. i have seen a lot of controversy
on
> this ml about WarpConnector. maybe u could try the mail-archive to find
out
> more or just keep trying here. hope this helps, david.
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>



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




Re: VIRTUAL HOST CONFIGURATION

2002-12-03 Thread David Brown
karthikeyan.balasubramanian writes: 

Hi All, 

  I have sucessfully integarated Apache with Tomcat using WarpConnecter.  But how do i go about from here to implement lots of Virtual Host for our clients.  I  need to setup atleast 5 virtual hosts.  I couldnt actually figure a way to host 5 real domains with JSP and Servlet support.   

  What are all the changes I need to do in the Httpd.conf and Server.xml.  I dont want to keep users folder under 
TOMCATHOME/Webapps/UserContext it will be under /usr/home/users-home-directory. 

  Can anybody help me out on this.  If somebody out here who have hosted some real domains rather then localhost thing 
please advice. 

  Looking forward for yours response. 

karthikeyan.


Hello, i'm hosting 4 public virtual domains. i am using mod_jk w/ apache and 
JkMount in httpd.conf and the ajp13 connector. i have many servlets, java 
beans and jsp running in different protected application context 
directories, jdbc connection to oracle, etc. this works 4 me. i know about 
the WarpConnector but have not used it. i have seen a lot of controversy on 
this ml about WarpConnector. maybe u could try the mail-archive to find out 
more or just keep trying here. hope this helps, david. 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: VIRTUAL HOST CONFIGURATION

2002-12-03 Thread Turner, John

http://www.codesta.com/knowledge/technical/tomcat_warp_apache/index.jsp

FYI - WARP is deprecated, or at least no longer actively developed.  If you
want to be guaranteed support in the future, you might want to consider
moving to JK/JK2.

John

> -Original Message-
> From: karthikeyan.balasubramanian
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 10:57 PM
> To: Tomcat Users List
> Subject: VIRTUAL HOST CONFIGURATION
> 
> 
> Hi All,
> 
>   I have sucessfully integarated Apache with Tomcat using 
> WarpConnecter.  But how do i go about from here to implement 
> lots of Virtual Host for our clients.  I  need to setup 
> atleast 5 virtual hosts.  I couldnt actually figure a way to 
> host 5 real domains with JSP and Servlet support.  
> 
>   What are all the changes I need to do in the Httpd.conf and 
> Server.xml.  I dont want to keep users folder under 
> TOMCATHOME/Webapps/UserContext it will be under 
> /usr/home/users-home-directory.
> 
>   Can anybody help me out on this.  If somebody out here who 
> have hosted some real domains rather then localhost thing 
> please advice.
> 
>   Looking forward for yours response.
> 
> karthikeyan.
> 

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




VIRTUAL HOST CONFIGURATION

2002-12-03 Thread karthikeyan.balasubramanian
Hi All,

  I have sucessfully integarated Apache with Tomcat using WarpConnecter.  But how do i 
go about from here to implement lots of Virtual Host for our clients.  I  need to 
setup atleast 5 virtual hosts.  I couldnt actually figure a way to host 5 real domains 
with JSP and Servlet support.  

  What are all the changes I need to do in the Httpd.conf and Server.xml.  I dont want 
to keep users folder under 
TOMCATHOME/Webapps/UserContext it will be under /usr/home/users-home-directory.

  Can anybody help me out on this.  If somebody out here who have hosted some real 
domains rather then localhost thing 
please advice.

  Looking forward for yours response.

karthikeyan.



Re: Best practice for virtual host configuration

2002-07-25 Thread Ryszard Lach

On Wed, Jul 24, 2002 at 09:46:28AM -0400, Cox, Charlie wrote:
> if your context is under the appBase, then it will autoload it. If your
> context is not under the appBase(shared contexts), then you 
> have to provide the path to it. 
> 
> I've never tried leaving docBase empty for a context, so I don't know what
> path it would look under. I guess webapps could be  assumed as the default
> directory for defined contexts even if you change the appbase.
> 
> so you changed your example to:
> 
>  docBase="" debug="1"
> reloadable="true">
> 
> 
> This would take the ROOT context, which is fine if all your virtual hosts
> use ROOT as their root context. I have different contexts that are the
> default context for their virtual hosts, so I have to provide a docBase to
> distinguish between them. My configuration is similar to your original
> except that I have a dummy appBase(prevent autoloading) and specify a
> absolute path for docBase.

Well, I suppose this won't work with mod_webapp - using application name
in WebAppDeploy in httpd.conf couses tomcat (probably) to search for
this name under appBase. So my working configuration is

appBase="webapps/aaa"
docBase="aaa"

and application in webapps/aaa/aaa. 

A little mesh, but I think I will be able to cut one 'aaa' as soon as
I'll be able to migrate to mod_jk (now I'm not because of mod_jserv used
with the same apache).

Regards,

Richard.

-- 
** Internet Designers S.A., ul. Przedmiejska 6-10, 54-201 Wrocław **
 tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Best practice for virtual host configuration

2002-07-24 Thread Cox, Charlie

if your context is under the appBase, then it will autoload it. If your
context is not under the appBase(shared contexts), then you 
have to provide the path to it. 

I've never tried leaving docBase empty for a context, so I don't know what
path it would look under. I guess webapps could be  assumed as the default
directory for defined contexts even if you change the appbase.

so you changed your example to:




This would take the ROOT context, which is fine if all your virtual hosts
use ROOT as their root context. I have different contexts that are the
default context for their virtual hosts, so I have to provide a docBase to
distinguish between them. My configuration is similar to your original
except that I have a dummy appBase(prevent autoloading) and specify a
absolute path for docBase.

Charlie

> -Original Message-
> From: Ryszard Lach [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 8:55 AM
> To: Tomcat Users List
> Subject: Re: Best practice for virtual host configuration
> 
> 
> On Wed, Jul 24, 2002 at 08:37:50AM -0400, Cox, Charlie wrote:
> > 
> > 
> > 
> > if you change the appBase, then you need to change the 
> docBase to be the
> > absolute path.
> > 
> > Charlie
> > 
> 
> Are you sure ? I tried to leave docBase empty and it worked too.
> 
> R.
> 
> -- 
> ** Internet Designers S.A., ul. Przedmiejska 6-10, 54-201 Wrocław **
>  tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>

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




Re: Best practice for virtual host configuration

2002-07-24 Thread Ryszard Lach

On Wed, Jul 24, 2002 at 08:37:50AM -0400, Cox, Charlie wrote:
> 
> 
> 
> if you change the appBase, then you need to change the docBase to be the
> absolute path.
> 
> Charlie
> 

Are you sure ? I tried to leave docBase empty and it worked too.

R.

-- 
** Internet Designers S.A., ul. Przedmiejska 6-10, 54-201 Wrocław **
 tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Best practice for virtual host configuration

2002-07-24 Thread Cox, Charlie



> -Original Message-
> From: Ryszard Lach [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 8:07 AM
> To: [EMAIL PROTECTED]
> Subject: Best practice for virtual host configuration
> 
> 
> Hi!
> 
> How is (in your opinion) best practice for virtual host 
> configuration ?
> I see there is quite natural in tomcat configuring many applications
> under one host - one writes several  sections with 
> appropriate
> docRoot and path attributes and that's all. When I configure several
> virtualhost I define
> 
> 
>   
> 
>  docBase="aaa/" debug="1"
> reloadable="true">
> 
> 
>   
> 
>   
>  docBase="bbb" debug="1"
> reloadable="true">
> 
> 
>   
> 
> but then I see in log, that for every host it is loaded every
> application installed in webapps directory. Should I define
> appBase="webapps/aaa" and leave path empty instead ? (honestly I tried
> to, but there was a problem with mod_webapp then, it tried to deploy
> application webapps/aaa/aaa (one aaa was from WebAppDeploy 
> directive in
> apache).
> 

if you change the appBase, then you need to change the docBase to be the
absolute path.

Charlie

> Any suggestions ?
> 
> Richard.
> 

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




Best practice for virtual host configuration

2002-07-24 Thread Ryszard Lach

Hi!

How is (in your opinion) best practice for virtual host configuration ?
I see there is quite natural in tomcat configuring many applications
under one host - one writes several  sections with appropriate
docRoot and path attributes and that's all. When I configure several
virtualhost I define


  




  

  



  

but then I see in log, that for every host it is loaded every
application installed in webapps directory. Should I define
appBase="webapps/aaa" and leave path empty instead ? (honestly I tried
to, but there was a problem with mod_webapp then, it tried to deploy
application webapps/aaa/aaa (one aaa was from WebAppDeploy directive in
apache).

Any suggestions ?

Richard.

-- 
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.

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




Re: Solved: TC4 + Apache virtual host configuration

2002-01-15 Thread Anton Brazhnyk

> I finally got virtual hosting working with Apache and TC4.0, woo hoo!
> 

Congratulations!

> The relevant sections from httpd.conf and server.xml are below. The
> only downside with this configuration is that I haven't been able to
> mount webapps in the root context specified by DocumentRoot. Instead I
> had to create a subdirectory 'site' and put the servlets and JSPs in
> that. Is there any way to mount the root context? 
> 

There is a special context and web-app in Servlet Spec. 
(so in Tomcat as well) called ROOT.
I believe you should put your app there and mention something
like

WebAppDeploy / conn /
or maybe
WebAppDeploy conn /

in your httpd.conf.
There can be some problems with slash (/) at the end of URL,
so try both "http://host"; and "http://host/"; in your browser.
But according to specs Tomcat's HTTP Connector is doing a favour
to as serving contexts without trailing slash. WARP connector doesn't.

I hope it helps.

BTW, are my messages can be read, cause I send them in some unusual way?

> -August
> 

Anton

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Solved: TC4 + Apache virtual host configuration

2002-01-14 Thread August Detlefsen

I finally got virtual hosting working with Apache and TC4.0, woo hoo!

The relevant sections from httpd.conf and server.xml are below. The
only downside with this configuration is that I haven't been able to
mount webapps in the root context specified by DocumentRoot. Instead I
had to create a subdirectory 'site' and put the servlets and JSPs in
that. Is there any way to mount the root context? 

-August

httpd.conf -

NameVirtualHost 231.232.123.213

# create the webapp connection
WebAppConnection conn  warp  localhost:8008
WebAppInfo /webapp-info


ServerName www.host1.com
DocumentRoot "/home/host1/www"

#depl0y webapps for this site
WebAppDeploy site  conn  /




ServerName www.host2.com
DocumentRoot "/home/host2/www"

#depl0y webapps for this site
WebAppDeploy site  conn  /




server.xml 



  
  





  
  

  
  

  
  











  

  
  











  

   

  




__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: