Tomcat (tomcat.conf)

Configurando o Tomcat no Apache

Categoria: Apache

Software: Tomcat

[ Hits: 13.534 ]

Por: Rafael


Arquivo de configuração do mod_jk connector, que ajuda a integrar o Tomcat com o Apache de forma que ambos funcionem na mesma máquina.

Apache lidando com as resquisições HTML e provavelmente PHP, enquanto o Tomcat lida com as requisições JSP.


##############################
# 
#  Baixando o mod_jk:
#
#  http://tomcat.apache.org/connectors-doc/
#
##############################
#
#  Inclua no seu httpd.conf:
#
#  Include /etc/httpd/tomcat.conf
#
# Obs: caminho para o arquivo tomcat.conf
#
##############################
# arquivo de configuração dos workers
##############################
JkWorkersFile /etc/apache-tomcat/workers.properties
##############################
# arquivo de log
##############################
JkLogFile /tmp/apache-tomcat/mod_jk.log
##############################
# nivel do log
##############################
JkLogLevel info
##############################
# formato do log
##############################
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
##############################
#
# Diretórios que serão lidos pelo tomcat ao invés do apache
# este caminho deve ser o mesmo que o da barra de endereços
# do seu navegador
#
# tomcat1 é um worker definido em workers.properties
#
##############################
JkMount /examples/servlets/* tomcat1
JkMount /~rafaelstv/*.jsp tomcat1
JkMount /~rafaelstv/apsOO/apsoo/*.jsp tomcat1
JkMount /hotel/* tomcat1
JkMount /apsoo/* tomcat1
JkMount /apsoo/cliente/* tomcat1
JkMount /sample/* tomcat1
JkMount /examples/* tomcat1
JkMount /examples/jsp/* tomcat1
JkMount /*.jsp tomcat1
  


Comentários

Nenhum comentário foi encontrado.


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts