RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

Is this a glitch?  Did my first reply to this post get lost?

John


 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:53 AM
 To: Tomcat Users List
 Subject: how to get apache-tomcat virtual host work? 
 
 
 
 
 I have redhat linux 7.3 
  
  i have two virtual host in my machine www.host1.com and www.host2.com
  www.host1.com is the default one.
  I have installed apache-tomcat on my machine
  apache-tomcat runs fine with the www.host1.com  one.
  i mean both http://www.host1.com:8080/examples and 
 http://www.host1.com/examples  come to same 
 result which is
  good.
  i want www.host2.com work same way as www.host1.com in term 
 of running
  apache-tomcat i did following to server.xml
   
  
  I add host dirctive like this
  
 **
 *
   Host name=host2.com debug=0 appBase=/home/www/zhujp98
unpackWARs=true
 
Listener
   className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true  /
 
 !-- Normally, users must authenticate themselves to 
 each web app
  individually.  Uncomment the following entry if you would
   like
  a user to be authenticated the first time they 
 encounter a
  resource protected by a security constraint, and 
 then have
that
  user identity maintained across *all* web applications
  contained
  in this virtual host. --
 !--
 Valve 
 className=org.apache.catalina.authenticator.SingleSignOn
debug=0/
 --
 
 !-- Access log processes all requests for this 
 virtual host.  By
  default, log files are created in the logs directory
  relative to
  $CATALINA_HOME.  If you wish, you can specify a different
  directory with the directory attribute.  
 Specify either a
  relative
  (to $CATALINA_HOME) or absolute path to the desired
   directory.
 --
 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common/
 
 !-- Logger shared by all Contexts related to this 
 virtual host.
 By
  default (when using FileLogger), log files are 
 created in the
   logs
  directory relative to $CATALINA_HOME.  If you 
 wish, you can
   specify
  a different directory with the directory attribute.
  Specify either a
  relative (to $CATALINA_HOME) or absolute path to 
 the desired
  directory.--
 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_log. 
 suffix=.txt
 timestamp=true/
 
 !-- Define properties for each web application.  This is only
needed
  if you want to set non-default properties, or have web
  application
  document roots in places other than the virtual host's
  appBase
  directory.  --
 
 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --
 
  Context path=/servlets 
 docBase=/home/www/zhujp98/servlets
  debug=0
 reloadable=true/
  /Host
 
 **
 
 
 after that I can access servlets using 
http://www.host2.com:8080/servlets

but fails when i use http://www.host2.com/servlets

it seems that apache did not connect to tomcat in terms of www.host2.com

how can i fix this problem?
Thanks

j.p 


-
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]



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Hostmaster of the day
John,

where is your reply ?

how to get apache-tomcat virtual host work? is an easy
question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.

Although I'm working very successfully with virtual hosts 
and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
hosts running with Tomcat 4.

Only the default virtual host is running. It doesn't matter
which virtual host I'm using.

I'm not alone and still working on it.

--Dave

 

Is this a glitch?  Did my first reply to this post get lost?

John


 I have redhat linux 7.3 
  
  i have two virtual host in my machine www.host1.com and
www.host2.com
  www.host1.com is the default one.
  I have installed apache-tomcat on my machine
  apache-tomcat runs fine with the www.host1.com  one.
  i mean both http://www.host1.com:8080/examples and 
 http://www.host1.com/examples  come to same 
 result which is
  good.
  i want www.host2.com work same way as www.host1.com in term 
 of running
  apache-tomcat i did following to server.xml
   
  
  I add host dirctive like this
  
 **
 *
   Host name=host2.com debug=0 appBase=/home/www/zhujp98
unpackWARs=true
 
Listener
   className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true  /
 
 !-- Normally, users must authenticate themselves to 
 each web app
  individually.  Uncomment the following entry if you
would
   like
  a user to be authenticated the first time they 
 encounter a
  resource protected by a security constraint, and 
 then have
that
  user identity maintained across *all* web applications
  contained
  in this virtual host. --
 !--
 Valve 
 className=org.apache.catalina.authenticator.SingleSignOn
debug=0/
 --
 
 !-- Access log processes all requests for this 
 virtual host.  By
  default, log files are created in the logs directory
  relative to
  $CATALINA_HOME.  If you wish, you can specify a
different
  directory with the directory attribute.  
 Specify either a
  relative
  (to $CATALINA_HOME) or absolute path to the desired
   directory.
 --
 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common/
 
 !-- Logger shared by all Contexts related to this 
 virtual host.
 By
  default (when using FileLogger), log files are 
 created in the
   logs
  directory relative to $CATALINA_HOME.  If you 
 wish, you can
   specify
  a different directory with the directory attribute.
  Specify either a
  relative (to $CATALINA_HOME) or absolute path to 
 the desired
  directory.--
 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_log. 
 suffix=.txt
 timestamp=true/
 
 !-- Define properties for each web application.  This is
only
needed
  if you want to set non-default properties, or have web
  application
  document roots in places other than the virtual host's
  appBase
  directory.  --
 
 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --
 
  Context path=/servlets 
 docBase=/home/www/zhujp98/servlets
  debug=0
 reloadable=true/
  /Host
 
 **
 
 
 after that I can access servlets using 
http://www.host2.com:8080/servlets

but fails when i use http://www.host2.com/servlets

it seems that apache did not connect to tomcat in terms of
www.host2.com

how can i fix this problem?
Thanks

j.p 


-
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]


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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

What are the contents of mod_jk.conf?

Did you restart Apache so that it could pick up the changes?

Is there a VirtualHost container in mod_jk.conf for www.host2.com?

In your Host container in server.xml, you list the name as host2.com, not
www.host2.com.   Is this a typo?  The two are different.  Either change it
to www.host2.com or use Alias within the Host container to alias
www.host2.com to host2.com.

John

 -Original Message-
 From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:36 AM
 To: [EMAIL PROTECTED]
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 John,
 
 where is your reply ?
 
 how to get apache-tomcat virtual host work? is an easy
 question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
 
 Although I'm working very successfully with virtual hosts 
 and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
 hosts running with Tomcat 4.
 
 Only the default virtual host is running. It doesn't matter
 which virtual host I'm using.
 
 I'm not alone and still working on it.
 
 --Dave
 
  
 
 Is this a glitch?  Did my first reply to this post get lost?
 
 John
 
 
  I have redhat linux 7.3 
   
   i have two virtual host in my machine www.host1.com and
 www.host2.com
   www.host1.com is the default one.
   I have installed apache-tomcat on my machine
   apache-tomcat runs fine with the www.host1.com  one.
   i mean both http://www.host1.com:8080/examples and 
  http://www.host1.com/examples  come to same 
  result which is
   good.
   i want www.host2.com work same way as www.host1.com in term 
  of running
   apache-tomcat i did following to server.xml

   
   I add host dirctive like this
   
  **
  *
Host name=host2.com debug=0 appBase=/home/www/zhujp98
 unpackWARs=true
  
 Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true  /
  
  !-- Normally, users must authenticate themselves to 
  each web app
   individually.  Uncomment the following entry if you
 would
like
   a user to be authenticated the first time they 
  encounter a
   resource protected by a security constraint, and 
  then have
 that
   user identity maintained across *all* web applications
   contained
   in this virtual host. --
  !--
  Valve 
  className=org.apache.catalina.authenticator.SingleSignOn
 debug=0/
  --
  
  !-- Access log processes all requests for this 
  virtual host.  By
   default, log files are created in the logs directory
   relative to
   $CATALINA_HOME.  If you wish, you can specify a
 different
   directory with the directory attribute.  
  Specify either a
   relative
   (to $CATALINA_HOME) or absolute path to the desired
directory.
  --
  Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=localhost_access_log.
   suffix=.txt
   pattern=common/
  
  !-- Logger shared by all Contexts related to this 
  virtual host.
  By
   default (when using FileLogger), log files are 
  created in the
logs
   directory relative to $CATALINA_HOME.  If you 
  wish, you can
specify
   a different directory with the directory attribute.
   Specify either a
   relative (to $CATALINA_HOME) or absolute path to 
  the desired
   directory.--
  Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=localhost_log. 
  suffix=.txt
  timestamp=true/
  
  !-- Define properties for each web application.  This is
 only
 needed
   if you want to set non-default properties, or have web
   application
   document roots in places other than the virtual host's
   appBase
   directory.  --
  
  !-- Tomcat Root Context --
  !--
Context path= docBase=ROOT debug=0/
  --
  
   Context path=/servlets 
  docBase=/home/www/zhujp98/servlets
   debug=0
  reloadable=true/
   /Host
  
  **
  
  
  after that I can access servlets using 
 http://www.host2.com:8080/servlets
 
 but fails when i use http://www.host2.com/servlets
 
 it seems that apache did not connect to tomcat in terms of
 www.host2.com
 
 how can i fix this problem?
 Thanks
 
 j.p 
 
 
 -
 To unsubscribe, e-mail: [EMAIL

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang
John,
Thank you very much for your response.

after i chang host2.com to www.host2.com and restart tomacat apache

My mod_jk.conf is like:
***
VirtualHost www.host2.com
ServerName www.host2.com

JkMount /servlets ajp13
JkMount /servlets/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost

VirtualHost www.host1.com
ServerName www.host1.com

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /mlogin ajp13
JkMount /mlogin/* ajp13

JkMount /login ajp13
JkMount /login/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost


 But it still not working.

Thanks for any futher suggestion.









On Fri, 28 Feb 2003, Turner, John wrote:

 
 What are the contents of mod_jk.conf?
 
 Did you restart Apache so that it could pick up the changes?
 
 Is there a VirtualHost container in mod_jk.conf for www.host2.com?
 
 In your Host container in server.xml, you list the name as host2.com, not
 www.host2.com.   Is this a typo?  The two are different.  Either change it
 to www.host2.com or use Alias within the Host container to alias
 www.host2.com to host2.com.
 
 John
 
  -Original Message-
  From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 11:36 AM
  To: [EMAIL PROTECTED]
  Subject: RE: how to get apache-tomcat virtual host work?
  
  
  John,
  
  where is your reply ?
  
  how to get apache-tomcat virtual host work? is an easy
  question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
  
  Although I'm working very successfully with virtual hosts 
  and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
  hosts running with Tomcat 4.
  
  Only the default virtual host is running. It doesn't matter
  which virtual host I'm using.
  
  I'm not alone and still working on it.
  
  --Dave
  
   
  
  Is this a glitch?  Did my first reply to this post get lost?
  
  John
  
  
   I have redhat linux 7.3 

i have two virtual host in my machine www.host1.com and
  www.host2.com
www.host1.com is the default one.
I have installed apache-tomcat on my machine
apache-tomcat runs fine with the www.host1.com  one.
i mean both http://www.host1.com:8080/examples and 
   http://www.host1.com/examples  come to same 
   result which is
good.
i want www.host2.com work same way as www.host1.com in term 
   of running
apache-tomcat i did following to server.xml
 

I add host dirctive like this

   **
   *
 Host name=host2.com debug=0 appBase=/home/www/zhujp98
  unpackWARs=true
   
  Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true  /
   
   !-- Normally, users must authenticate themselves to 
   each web app
individually.  Uncomment the following entry if you
  would
 like
a user to be authenticated the first time they 
   encounter a
resource protected by a security constraint, and 
   then have
  that
user identity maintained across *all* web applications
contained
in this virtual host. --
   !--
   Valve 
   className=org.apache.catalina.authenticator.SingleSignOn
  debug=0/
   --
   
   !-- Access log processes all requests for this 
   virtual host.  By
default, log files are created in the logs directory
relative to
$CATALINA_HOME.  If you wish, you can specify a
  different
directory with the directory attribute.  
   Specify either a
relative
(to $CATALINA_HOME) or absolute path to the desired
 directory.
   --
   Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=localhost_access_log.
suffix=.txt
pattern=common/
   
   !-- Logger shared by all Contexts related to this 
   virtual host.
   By
default (when using FileLogger), log files are 
   created in the
 logs
directory relative to $CATALINA_HOME.  If you 
   wish, you can
 specify
a different directory with the directory attribute.
Specify either a
relative (to $CATALINA_HOME) or absolute path to 
   the desired
directory.--
   Logger className=org.apache.catalina.logger.FileLogger

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

Is that something you created by hand?  That's not output from ApacheConfig.
Are there entries in httpd.conf for things like JkWorkersFile, etc.?

John

 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 12:58 PM
 To: Tomcat Users List
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 John,
 Thank you very much for your response.
 
 after i chang host2.com to www.host2.com and restart tomacat apache
 
 My mod_jk.conf is like:
 ***
 VirtualHost www.host2.com
 ServerName www.host2.com
 
 JkMount /servlets ajp13
 JkMount /servlets/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 VirtualHost www.host1.com
 ServerName www.host1.com
 
 JkMount /webdav ajp13
 JkMount /webdav/* ajp13
 
 JkMount /mlogin ajp13
 JkMount /mlogin/* ajp13
 
 JkMount /login ajp13
 JkMount /login/* ajp13
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 
  But it still not working.
 
 Thanks for any futher suggestion.
 
 
 
 
 
 
 
 
 
 On Fri, 28 Feb 2003, Turner, John wrote:
 
  
  What are the contents of mod_jk.conf?
  
  Did you restart Apache so that it could pick up the changes?
  
  Is there a VirtualHost container in mod_jk.conf for www.host2.com?
  
  In your Host container in server.xml, you list the name as 
 host2.com, not
  www.host2.com.   Is this a typo?  The two are different.  
 Either change it
  to www.host2.com or use Alias within the Host container to alias
  www.host2.com to host2.com.
  
  John
  
   -Original Message-
   From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
   Sent: Friday, February 28, 2003 11:36 AM
   To: [EMAIL PROTECTED]
   Subject: RE: how to get apache-tomcat virtual host work?
   
   
   John,
   
   where is your reply ?
   
   how to get apache-tomcat virtual host work? is an easy
   question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
   
   Although I'm working very successfully with virtual hosts 
   and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
   hosts running with Tomcat 4.
   
   Only the default virtual host is running. It doesn't matter
   which virtual host I'm using.
   
   I'm not alone and still working on it.
   
   --Dave
   

   
   Is this a glitch?  Did my first reply to this post get lost?
   
   John
   
   
I have redhat linux 7.3 
 
 i have two virtual host in my machine www.host1.com and
   www.host2.com
 www.host1.com is the default one.
 I have installed apache-tomcat on my machine
 apache-tomcat runs fine with the www.host1.com  one.
 i mean both http://www.host1.com:8080/examples and 
http://www.host1.com/examples  come to same 
result which is
 good.
 i want www.host2.com work same way as www.host1.com in term 
of running
 apache-tomcat i did following to server.xml
  
 
 I add host dirctive like this
 
**
*
  Host name=host2.com debug=0 appBase=/home/www/zhujp98
   unpackWARs=true

   Listener
  
 className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true  /

!-- Normally, users must authenticate themselves to 
each web app
 individually.  Uncomment the following entry if you
   would
  like
 a user to be authenticated the first time they 
encounter a
 resource protected by a security constraint, and 
then have
   that
 user identity maintained across *all* web 
 applications
 contained
 in this virtual host. --
!--
Valve 
className=org.apache.catalina.authenticator.SingleSignOn
   debug=0/
--

!-- Access log processes all requests for this 
virtual host.  By
 default, log files are created in the 
 logs directory
 relative to
 $CATALINA_HOME.  If you wish, you can specify a
   different
 directory with the directory attribute.  
Specify either a
 relative
 (to $CATALINA_HOME) or absolute path to the desired
  directory.
--
Valve 
 className=org.apache.catalina.valves.AccessLogValve
 directory=logs  
 prefix=localhost_access_log.
 suffix=.txt
 pattern=common/

!-- Logger shared by all Contexts related

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Hostmaster of the day
Dear Xiongfei Wang,

this httpd.conf entry seems to be wrong :

JkMount /servlets ajp13
JkMount /servlets/* ajp13

Correct entry should be :

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

--Dave


 John,
 Thank you very much for your response.
 
 after i chang host2.com to www.host2.com and restart tomacat apache
 
 My mod_jk.conf is like:
 ***
 VirtualHost www.host2.com
 ServerName www.host2.com
 
 JkMount /servlets ajp13
 JkMount /servlets/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 VirtualHost www.host1.com
 ServerName www.host1.com
 
 JkMount /webdav ajp13
 JkMount /webdav/* ajp13
 
 JkMount /mlogin ajp13
 JkMount /mlogin/* ajp13
 
 JkMount /login ajp13
 JkMount /login/* ajp13
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 
  But it still not working.
 
 Thanks for any futher suggestion.
 
 
 
 
 
 
 
 
 
 On Fri, 28 Feb 2003, Turner, John wrote:
 
  
  What are the contents of mod_jk.conf?
  
  Did you restart Apache so that it could pick up the changes?
  
  Is there a VirtualHost container in mod_jk.conf for www.host2.com?
  
  In your Host container in server.xml, you list the name as
host2.com, not
  www.host2.com.   Is this a typo?  The two are different.
Either change it
  to www.host2.com or use Alias within the Host container to
alias
  www.host2.com to host2.com.
  
  John
  
   -Original Message-
   From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
   Sent: Friday, February 28, 2003 11:36 AM
   To: [EMAIL PROTECTED]
   Subject: RE: how to get apache-tomcat virtual host work?
   
   
   John,
   
   where is your reply ?
   
   how to get apache-tomcat virtual host work? is an easy
   question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
   
   Although I'm working very successfully with virtual hosts 
   and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
   hosts running with Tomcat 4.
   
   Only the default virtual host is running. It doesn't matter
   which virtual host I'm using.
   
   I'm not alone and still working on it.
   
   --Dave
   

   
   Is this a glitch?  Did my first reply to this post get lost?
   
   John
   
   
I have redhat linux 7.3 
 
 i have two virtual host in my machine www.host1.com and
   www.host2.com
 www.host1.com is the default one.
 I have installed apache-tomcat on my machine
 apache-tomcat runs fine with the www.host1.com  one.
 i mean both http://www.host1.com:8080/examples and 
http://www.host1.com/examples  come to same 
result which is
 good.
 i want www.host2.com work same way as www.host1.com in term 
of running
 apache-tomcat i did following to server.xml
  
 
 I add host dirctive like this
 
**
*
  Host name=host2.com debug=0 appBase=/home/www/zhujp98
   unpackWARs=true

   Listener
   
className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true  /

!-- Normally, users must authenticate themselves to 
each web app
 individually.  Uncomment the following entry if
you
   would
  like
 a user to be authenticated the first time they 
encounter a
 resource protected by a security constraint, and 
then have
   that
 user identity maintained across *all* web
applications
 contained
 in this virtual host. --
!--
Valve 
className=org.apache.catalina.authenticator.SingleSignOn
   debug=0/
--

!-- Access log processes all requests for this 
virtual host.  By
 default, log files are created in the logs
directory
 relative to
 $CATALINA_HOME.  If you wish, you can specify a
   different
 directory with the directory attribute.  
Specify either a
 relative
 (to $CATALINA_HOME) or absolute path to the
desired
  directory.
--
Valve
className=org.apache.catalina.valves.AccessLogValve
 directory=logs
prefix=localhost_access_log.
 suffix=.txt
 pattern=common/

!-- Logger shared by all Contexts related to this 
virtual host.
By
 default (when using FileLogger), log files are 
created in the
  logs
 directory relative

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang
I did create it by hand.

I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same
thing inside as before.
In httpd.conf
I have 

Include /usr/local/tomcat/conf/auto/mod_jk.conf

IfModule mod_jk.c
   JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
   JkLogFile /usr/local/tomcat/logs/mod_jk.log
   JkLogLevel debug
   JkMount /examples ajp13
   JkMount /examples/* ajp13

/IfModule   


Any more advices? Thanks

On Fri, 28 Feb 2003, Turner, John wrote:

 
 Is that something you created by hand?  That's not output from ApacheConfig.
 Are there entries in httpd.conf for things like JkWorkersFile, etc.?
 
 John
 
  -Original Message-
  From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 12:58 PM
  To: Tomcat Users List
  Subject: RE: how to get apache-tomcat virtual host work?
  
  
  John,
  Thank you very much for your response.
  
  after i chang host2.com to www.host2.com and restart tomacat apache
  
  My mod_jk.conf is like:
  ***
  VirtualHost www.host2.com
  ServerName www.host2.com
  
  JkMount /servlets ajp13
  JkMount /servlets/* ajp13
  
  JkMount /manager ajp13
  JkMount /manager/* ajp13
  /VirtualHost
  
  VirtualHost www.host1.com
  ServerName www.host1.com
  
  JkMount /webdav ajp13
  JkMount /webdav/* ajp13
  
  JkMount /mlogin ajp13
  JkMount /mlogin/* ajp13
  
  JkMount /login ajp13
  JkMount /login/* ajp13
  
  JkMount /examples ajp13
  JkMount /examples/* ajp13
  
  JkMount /tomcat-docs ajp13
  JkMount /tomcat-docs/* ajp13
  
  JkMount /manager ajp13
  JkMount /manager/* ajp13
  /VirtualHost
  
  
   But it still not working.
  
  Thanks for any futher suggestion.
  
  
  
  
  
  
  
  
  
  On Fri, 28 Feb 2003, Turner, John wrote:
  
   
   What are the contents of mod_jk.conf?
   
   Did you restart Apache so that it could pick up the changes?
   
   Is there a VirtualHost container in mod_jk.conf for www.host2.com?
   
   In your Host container in server.xml, you list the name as 
  host2.com, not
   www.host2.com.   Is this a typo?  The two are different.  
  Either change it
   to www.host2.com or use Alias within the Host container to alias
   www.host2.com to host2.com.
   
   John
   
-Original Message-
From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:36 AM
To: [EMAIL PROTECTED]
Subject: RE: how to get apache-tomcat virtual host work?


John,

where is your reply ?

how to get apache-tomcat virtual host work? is an easy
question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.

Although I'm working very successfully with virtual hosts 
and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
hosts running with Tomcat 4.

Only the default virtual host is running. It doesn't matter
which virtual host I'm using.

I'm not alone and still working on it.

--Dave

 

Is this a glitch?  Did my first reply to this post get lost?

John


 I have redhat linux 7.3 
  
  i have two virtual host in my machine www.host1.com and
www.host2.com
  www.host1.com is the default one.
  I have installed apache-tomcat on my machine
  apache-tomcat runs fine with the www.host1.com  one.
  i mean both http://www.host1.com:8080/examples and 
 http://www.host1.com/examples  come to same 
 result which is
  good.
  i want www.host2.com work same way as www.host1.com in term 
 of running
  apache-tomcat i did following to server.xml
   
  
  I add host dirctive like this
  
 **
 *
   Host name=host2.com debug=0 appBase=/home/www/zhujp98
unpackWARs=true
 
Listener
   
  className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true  /
 
 !-- Normally, users must authenticate themselves to 
 each web app
  individually.  Uncomment the following entry if you
would
   like
  a user to be authenticated the first time they 
 encounter a
  resource protected by a security constraint, and 
 then have
that
  user identity maintained across *all* web 
  applications
  contained
  in this virtual host. --
 !--
 Valve 
 className=org.apache.catalina.authenticator.SingleSignOn
debug=0/
 --
 
 !-- Access log processes all requests for this 
 virtual host.  By
  default, log files

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

Take out the lines that look like this:

JkMount /someURL ajp13

The typical setup is something like this:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

John

 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 2:36 PM
 To: Tomcat Users List
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 I did create it by hand.
 
 I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same
 thing inside as before.
 In httpd.conf
 I have 
 
 Include /usr/local/tomcat/conf/auto/mod_jk.conf
 
 IfModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel debug
JkMount /examples ajp13
JkMount /examples/* ajp13
 
 /IfModule   
 
 
 Any more advices? Thanks
 
 On Fri, 28 Feb 2003, Turner, John wrote:
 
  
  Is that something you created by hand?  That's not output 
 from ApacheConfig.
  Are there entries in httpd.conf for things like JkWorkersFile, etc.?
  
  John
  
   -Original Message-
   From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
   Sent: Friday, February 28, 2003 12:58 PM
   To: Tomcat Users List
   Subject: RE: how to get apache-tomcat virtual host work?
   
   
   John,
   Thank you very much for your response.
   
   after i chang host2.com to www.host2.com and restart 
 tomacat apache
   
   My mod_jk.conf is like:
   
 ***
   VirtualHost www.host2.com
   ServerName www.host2.com
   
   JkMount /servlets ajp13
   JkMount /servlets/* ajp13
   
   JkMount /manager ajp13
   JkMount /manager/* ajp13
   /VirtualHost
   
   VirtualHost www.host1.com
   ServerName www.host1.com
   
   JkMount /webdav ajp13
   JkMount /webdav/* ajp13
   
   JkMount /mlogin ajp13
   JkMount /mlogin/* ajp13
   
   JkMount /login ajp13
   JkMount /login/* ajp13
   
   JkMount /examples ajp13
   JkMount /examples/* ajp13
   
   JkMount /tomcat-docs ajp13
   JkMount /tomcat-docs/* ajp13
   
   JkMount /manager ajp13
   JkMount /manager/* ajp13
   /VirtualHost
   
 
   
But it still not working.
   
   Thanks for any futher suggestion.
   
   
   
   
   
   
   
   
   
   On Fri, 28 Feb 2003, Turner, John wrote:
   

What are the contents of mod_jk.conf?

Did you restart Apache so that it could pick up the changes?

Is there a VirtualHost container in mod_jk.conf for 
 www.host2.com?

In your Host container in server.xml, you list the name as 
   host2.com, not
www.host2.com.   Is this a typo?  The two are different.  
   Either change it
to www.host2.com or use Alias within the Host 
 container to alias
www.host2.com to host2.com.

John

 -Original Message-
 From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:36 AM
 To: [EMAIL PROTECTED]
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 John,
 
 where is your reply ?
 
 how to get apache-tomcat virtual host work? is an easy
 question as long as you are using Tomcat 3.2.3 or 
 Tomcat 3.3.1.
 
 Although I'm working very successfully with virtual hosts 
 and Tomcat 3.2.3 + 3.3.1 I was up to now unable to 
 get virtual 
 hosts running with Tomcat 4.
 
 Only the default virtual host is running. It doesn't matter
 which virtual host I'm using.
 
 I'm not alone and still working on it.
 
 --Dave
 
  
 
 Is this a glitch?  Did my first reply to this post get lost?
 
 John
 
 
  I have redhat linux 7.3 
   
   i have two virtual host in my machine www.host1.com and
 www.host2.com
   www.host1.com is the default one.
   I have installed apache-tomcat on my machine
   apache-tomcat runs fine with the www.host1.com  one.
   i mean both http://www.host1.com:8080/examples and 
  http://www.host1.com/examples  come to same 
  result which is
   good.
   i want www.host2.com work same way as 
 www.host1.com in term 
  of running
   apache-tomcat i did following to server.xml

   
   I add host dirctive like this
   
  
 **
  *
Host name=host2.com debug=0 
 appBase=/home/www/zhujp98
 unpackWARs=true
  
 Listener

   className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true  /
  
  !-- Normally, users must authenticate 
 themselves to 
  each web app
   individually.  Uncomment the following 
 entry if you
 would
like
   a user to be authenticated

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang
my previous email should be I did NOT create mod_jk.conf by hand.
because i do not know how to creat mod_jk.conf by hand.



On Fri, 28 Feb 2003, Turner, John wrote:

 
 Take out the lines that look like this:
 
 JkMount /someURL ajp13
 
 The typical setup is something like this:
 
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 
 John
 
  -Original Message-
  From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 2:36 PM
  To: Tomcat Users List
  Subject: RE: how to get apache-tomcat virtual host work?
  
  
  I did create it by hand.
  
  I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same
  thing inside as before.
  In httpd.conf
  I have 
  
  Include /usr/local/tomcat/conf/auto/mod_jk.conf
  
  IfModule mod_jk.c
 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
 JkLogFile /usr/local/tomcat/logs/mod_jk.log
 JkLogLevel debug
 JkMount /examples ajp13
 JkMount /examples/* ajp13
  
  /IfModule   
  
  
  Any more advices? Thanks
  
  On Fri, 28 Feb 2003, Turner, John wrote:
  
   
   Is that something you created by hand?  That's not output 
  from ApacheConfig.
   Are there entries in httpd.conf for things like JkWorkersFile, etc.?
   
   John
   
-Original Message-
From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:58 PM
To: Tomcat Users List
Subject: RE: how to get apache-tomcat virtual host work?


John,
Thank you very much for your response.

after i chang host2.com to www.host2.com and restart 
  tomacat apache

My mod_jk.conf is like:

  ***
VirtualHost www.host2.com
ServerName www.host2.com

JkMount /servlets ajp13
JkMount /servlets/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost

VirtualHost www.host1.com
ServerName www.host1.com

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /mlogin ajp13
JkMount /mlogin/* ajp13

JkMount /login ajp13
JkMount /login/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost

  

 But it still not working.

Thanks for any futher suggestion.









On Fri, 28 Feb 2003, Turner, John wrote:

 
 What are the contents of mod_jk.conf?
 
 Did you restart Apache so that it could pick up the changes?
 
 Is there a VirtualHost container in mod_jk.conf for 
  www.host2.com?
 
 In your Host container in server.xml, you list the name as 
host2.com, not
 www.host2.com.   Is this a typo?  The two are different.  
Either change it
 to www.host2.com or use Alias within the Host 
  container to alias
 www.host2.com to host2.com.
 
 John
 
  -Original Message-
  From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 11:36 AM
  To: [EMAIL PROTECTED]
  Subject: RE: how to get apache-tomcat virtual host work?
  
  
  John,
  
  where is your reply ?
  
  how to get apache-tomcat virtual host work? is an easy
  question as long as you are using Tomcat 3.2.3 or 
  Tomcat 3.3.1.
  
  Although I'm working very successfully with virtual hosts 
  and Tomcat 3.2.3 + 3.3.1 I was up to now unable to 
  get virtual 
  hosts running with Tomcat 4.
  
  Only the default virtual host is running. It doesn't matter
  which virtual host I'm using.
  
  I'm not alone and still working on it.
  
  --Dave
  
   
  
  Is this a glitch?  Did my first reply to this post get lost?
  
  John
  
  
   I have redhat linux 7.3 

i have two virtual host in my machine www.host1.com and
  www.host2.com
www.host1.com is the default one.
I have installed apache-tomcat on my machine
apache-tomcat runs fine with the www.host1.com  one.
i mean both http://www.host1.com:8080/examples and 
   http://www.host1.com/examples  come to same 
   result which is
good.
i want www.host2.com work same way as 
  www.host1.com in term 
   of running
apache-tomcat i did following to server.xml
 

I add host dirctive like this

   
  **
   *
 Host name=host2.com debug=0 
  appBase=/home/www/zhujp98
  unpackWARs=true
   
  Listener

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

OK, then the Listener directives you have in server.xml are not correct.

Here is how mod_jk.conf looks, from a completely default Tomcat install
(localhost is the only virtual host in this case), with the addition of the
two Listener elements in server.xml:

http://www.johnturner.com/howto/mod_jk_conf.html

If yours doesn't look like that, I would review server.xml and verify that
my Listener directives/elements are positioned correctly and are complete,
as described in the Final Configuration section of my RH 7.x HOWTO:

http://www.johnturner.com/howto/rh72-howto.html

John

 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 2:54 PM
 To: Tomcat Users List
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 my previous email should be I did NOT create mod_jk.conf by hand.
 because i do not know how to creat mod_jk.conf by hand.
 
 
 
 On Fri, 28 Feb 2003, Turner, John wrote:
 
  
  Take out the lines that look like this:
  
  JkMount /someURL ajp13
  
  The typical setup is something like this:
  
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  
  John
  
   -Original Message-
   From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
   Sent: Friday, February 28, 2003 2:36 PM
   To: Tomcat Users List
   Subject: RE: how to get apache-tomcat virtual host work?
   
   
   I did create it by hand.
   
   I just delete mod_jk.conf and restart tomcat and 
 mod_jk.conf has same
   thing inside as before.
   In httpd.conf
   I have 
   
   Include /usr/local/tomcat/conf/auto/mod_jk.conf
   
   IfModule mod_jk.c
  JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
  JkLogFile /usr/local/tomcat/logs/mod_jk.log
  JkLogLevel debug
  JkMount /examples ajp13
  JkMount /examples/* ajp13
   
   /IfModule   
   
   
   Any more advices? Thanks
   
 
 -
 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: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

Also, if you are using the mod_jk.conf style, the only thing in httpd.conf
should be:

Include /usr/local/tomcat/conf/auto/mod_jk.conf

Also, are you loading the mod_jk.so module in httpd.conf?

John

 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 2:54 PM
 To: Tomcat Users List
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 my previous email should be I did NOT create mod_jk.conf by hand.
 because i do not know how to creat mod_jk.conf by hand.
 
 
 
 On Fri, 28 Feb 2003, Turner, John wrote:
 
  
  Take out the lines that look like this:
  
  JkMount /someURL ajp13
  
  The typical setup is something like this:
  
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  
  John
  
   -Original Message-
   From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
   Sent: Friday, February 28, 2003 2:36 PM
   To: Tomcat Users List
   Subject: RE: how to get apache-tomcat virtual host work?
   
   
   I did create it by hand.
   
   I just delete mod_jk.conf and restart tomcat and 
 mod_jk.conf has same
   thing inside as before.
   In httpd.conf
   I have 
   
   Include /usr/local/tomcat/conf/auto/mod_jk.conf
   
   IfModule mod_jk.c
  JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
  JkLogFile /usr/local/tomcat/logs/mod_jk.log
  JkLogLevel debug
  JkMount /examples ajp13
  JkMount /examples/* ajp13
   
   /IfModule   
   
   
   Any more advices? Thanks
   

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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang
Thanks for your email

in httpd.conf

I have 
IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.so
/IfModule
to load mod_jk.so

Because for my default host apache-tomcat works seem fine.
in order to let apache-tomcat workd for host2 what else should i make
change beside adding host/host to server.xml?

Thanks.



On Fri, 28 Feb 2003, Turner, John wrote:

 
 Also, if you are using the mod_jk.conf style, the only thing in httpd.conf
 should be:
 
 Include /usr/local/tomcat/conf/auto/mod_jk.conf
 
 Also, are you loading the mod_jk.so module in httpd.conf?
 
 John
 
  -Original Message-
  From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 2:54 PM
  To: Tomcat Users List
  Subject: RE: how to get apache-tomcat virtual host work?
  
  
  my previous email should be I did NOT create mod_jk.conf by hand.
  because i do not know how to creat mod_jk.conf by hand.
  
  
  
  On Fri, 28 Feb 2003, Turner, John wrote:
  
   
   Take out the lines that look like this:
   
   JkMount /someURL ajp13
   
   The typical setup is something like this:
   
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   
   John
   
-Original Message-
From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:36 PM
To: Tomcat Users List
Subject: RE: how to get apache-tomcat virtual host work?


I did create it by hand.

I just delete mod_jk.conf and restart tomcat and 
  mod_jk.conf has same
thing inside as before.
In httpd.conf
I have 

Include /usr/local/tomcat/conf/auto/mod_jk.conf

IfModule mod_jk.c
   JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
   JkLogFile /usr/local/tomcat/logs/mod_jk.log
   JkLogLevel debug
   JkMount /examples ajp13
   JkMount /examples/* ajp13

/IfModule   


Any more advices? Thanks

 
 -
 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: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

That's it, but your mod_jk.conf file doesn't look right.  

Host in server.xml = virtual host

For every virtual host you want Tomcat to server content for, you need a
Host/Host container with an appropriate name.

If you're still having problems after that, the best thing would be for you
to post your mod_jk.conf file (don't copy and paste, but attach the actual
file), along with workers.properties and server.xml.  The mod_jk.conf file
you are getting from the ApacheConfig class in server.xml doesn't look like
anything I have seen before.

John

 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 3:18 PM
 To: Tomcat Users List
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 Thanks for your email
 
 in httpd.conf
 
 I have 
 IfModule !mod_jk.c
   LoadModule jk_module modules/mod_jk.so
 /IfModule
 to load mod_jk.so
 
 Because for my default host apache-tomcat works seem fine.
 in order to let apache-tomcat workd for host2 what else should i make
 change beside adding host/host to server.xml?
 
 Thanks.
 
 
 
 On Fri, 28 Feb 2003, Turner, John wrote:
 
  
  Also, if you are using the mod_jk.conf style, the only 
 thing in httpd.conf
  should be:
  
  Include /usr/local/tomcat/conf/auto/mod_jk.conf
  
  Also, are you loading the mod_jk.so module in httpd.conf?
  
  John
  
   -Original Message-
   From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
   Sent: Friday, February 28, 2003 2:54 PM
   To: Tomcat Users List
   Subject: RE: how to get apache-tomcat virtual host work?
   
   
   my previous email should be I did NOT create mod_jk.conf 
 by hand.
   because i do not know how to creat mod_jk.conf by hand.
   
   
   
   On Fri, 28 Feb 2003, Turner, John wrote:
   

Take out the lines that look like this:

JkMount /someURL ajp13

The typical setup is something like this:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

John

 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 2:36 PM
 To: Tomcat Users List
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 I did create it by hand.
 
 I just delete mod_jk.conf and restart tomcat and 
   mod_jk.conf has same
 thing inside as before.
 In httpd.conf
 I have 
 
 Include /usr/local/tomcat/conf/auto/mod_jk.conf
 
 IfModule mod_jk.c
JkWorkersFile 
 /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
JkLogLevel debug
JkMount /examples ajp13
JkMount /examples/* ajp13
 
 /IfModule   
 
 
 Any more advices? Thanks
 
  
  
 -
  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]