Hi, Simone !!

Fist I'm sorry my bad english, but I try to help.
I send below the some instructions about how "join" the Apache Web Server and Tom Cat.
Let me know if you have solve(or not) this problems.

Regards.

Edson CARVAlho


Essa descri��o leva em conta que o Apache 1.3.26 e o Tom Cat 4.01 j� estejam 
instalados no Windows 2000, Julio acho q vc pode tirar alguns par�metros desse 
descritivo uma vez que na Wa60 esta na depend�ncia da configura��o do httpd.conf e do 
server.xml

- Pegando o m�dulo  "warp Connection ( mod_webapp.so )"  para o Windows em :

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/v4.0.1/bin/win32/webapp-module-1.0-tc40-windows.zip
(Repara o texto no footer dessa p�gina: "Apache/2.0.40 Server at jakarta.apache.org 
Port 80" )


- Configurando o Apache :

V� para seuDiret�rioInstalacaoDoApache/Apache/conf e edit o arquivo httpd.conf como 
mostro abaixo,

..............................
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so (esta linha esta por volta da 
192)
# Declaracao para acrescentar o modulo de conector,Carva
LoadModule webapp_module modules/mod_webapp.so (Adicione)

..............................
#AddModule mod_unique_id.c
AddModule mod_so.c
AddModule mod_setenvif.c  (esta linha esta por volta da 241)
# Adicionei tb aqui, Carva
AddModule mod_webapp.c (Adicione)

...........................
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
# machine always knows itself by this address. If you use Apache strictly for 
# local testing and development, you may use 127.0.0.1 as the server name.
#
ServerName note-ebarbos (nome do minha m�quina, nada impede 127.0.0.1 ou localhost ou 
outro nome tipo: "naoacredito") (esta linha esta por volta da 296)

..........................
# Declaracao para acrescentar o modulo de conector,Carva
DocumentRoot "C:/Tomcat 4.0/webapps" (Colocar o endere�o de onde est�o os comte�dos 
para serem exibidos)  (esta linha esta por volta da 305)

.........................
# Declaracao para acrescentar o modulo de conector,Carva
<Directory "C:/Tomcat 4.0/webapps"> (Colocar o endere�o de onde est�o os comte�dos 
para serem exibidos)  (esta linha esta por volta da 330)

........................
<IfModule mod_userdir.c>
    UserDir "C:/Apache Group/Apache/users/"
</IfModule>

# Inseri aqui para declarar os diretorios no Tom cat , Carva
<IfModule mod_webapp.c>  (esta linha esta por volta da 368)
WebAppConnection warpConnection warp note-ebarbos:8008 (Obrigat�rio colocar porta 8008 
� a porta onde o warp Connection acessa Tom Cat)
WebAppInfo   /webapp-info
WebAppDeploy carvanovo warpConnection /carvanovo (declarei somente este contexto de 
acesso ao Tom Cat)
WebAppDeploy fama warpConnection /fama (declarei somente este contexto de acesso ao 
Tom Cat caso queira mais contextos,inclua novas linhas)
WebAppDeploy webdav warpConnection /webdav
WebAppDeploy tomcat-docs warpConnection /tomcat-docs
</IfModule>

Eheeeee....para esse m�dulo, S� ISSO !!!



- Configurando o Tom Cat :


V� para seuDiret�rioInstalacaoDoTomCat/conf e edit o arquivo server.xml como mostro 
abaixo,

- Onde estiver escrito <Service name="Tomcat-Standalone"> troque para  <Service 
name="Tomcat-Apache">


V� at� a �ltima tag :

 <!-- Define an Apache-Connector Service -->
 <Service name="Tomcat-Apache">  (esta linha esta por volta da 332) 

E insira o seguinte conte�do dentro da �ltima tag "service" :

<!-- Define an Apache-Connector Service -->
  <Service name="Tomcat-Apache">

    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
     port="8008" minProcessors="5" maxProcessors="75"
     enableLookups="true"
     acceptCount="10" debug="0"/>

    <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
           <!-- Apenas inseri o item defaultHost="note-ebarbos" e as tags de Host e 
Context -->         
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
     name="Apache" debug="0" defaultHost="note-ebarbos" appBase="webapps">       
         
         <Host name="note-ebarbos" debug="0" 
          appBase="webapps" unpackWARs="true">

                <!-- Inseri esse contexto na duvida dele nao olhar para o contexto 
default do Tom, Carva -->
                <Context path="/carvanovo" docBase="carvanovo" debug="0"
                 reloadable="true" privileged="true" />
         </Host>

      <!-- Global logger unless overridden at lower levels -->
           <!-- Troquei o nome do Log para "ApacheTomCat_log" antes era "apache_log" 
-->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="ApacheTomCat_log." suffix=".txt"
              timestamp="true"/>

      <!-- Because this Realm is here, an instance will be shared globally -->
      <Realm className="org.apache.catalina.realm.MemoryRealm" />

    </Engine>

  </Service>

</Server>



- Iniciando Apache x Tom Cat :

Esse ponto � IMPORTANTE pois devemos PRIMEIRAMENTE iniciar TOM CAT para depois iniciar 
o APACHE, tentei fazer o contr�rio e N�O funcionou !!!

Se tudo estiver "bacaninha" v� at� a pasta de Log's do tio Tom Cat em 
seuDiret�rioInstalacaoDoTomCat/logs e ache o log ApacheTomCat_log.2002-08-16.txt, as 
�ltimas linhas dele deve vir algo assim :

2002-08-16 16:05:22 [org.apache.catalina.connector.warp.WarpConnector] Connection from 
note-ebarbos.waura.ad/192.168.50.68:2638 to note-ebarbos.waura.ad/192.168.50.68:8008
2002-08-16 16:05:22 [org.apache.catalina.connector.warp.WarpConfigurationHandler] 
Filter mappings (0)
2002-08-16 16:05:22 [org.apache.catalina.connector.warp.WarpConfigurationHandler] 
Filter mappings (0)
2002-08-16 16:05:22 [org.apache.catalina.connector.warp.WarpConfigurationHandler] 
Filter mappings (0)










-----Original Message-----
From: Simone Chiaretta [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 20 de mar�o de 2003 13:29
To: Tomcat User List
Subject: User Web Applications with both apache and tomcat


Hello all,
I tried to configure User Web Applications (the one with
myserver.com/~username) with tomcat and it works
I did the same with apache, and it works
but I don't know (not managed to) get this working in a configuration with
mod_jk and apache 2.0.44 and tomcat 4.1.18

Does anyone know how to do it?

Simone

-------------------------
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic


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

Reply via email to