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