There are some days installed a servant web with Apache 1.3.27 and Tomcat 4.1.18
under Suse Linux Professional 7.2, however I am facing problems
in the configuration and integration of the virtual hosts of the Apache for the tomcat.
In the end of this e-mail it is some fragments of the configuration files
that I am using, as for instance http.conf, workers.properties and server.xml
When I try to access the address http://www.ged.ufu.br that has the file index.jsp,
that I put soon lower, I receive the following text <% out.println ("aaaaaaaaaaaa");%>
in the screen of the browser, what shows that the things are not working how they 
would owe.
What am missing?
Another question would be: I will have four virtual hosts in the Apache,
logically I will have to have the same ones four configured in Tomcat. Is it possible?
I thank the help in advance.

File index.jsp

root@ged2:/web/ged > cat index.jsp
<%out.println("aaaaaaaaaaaaaaaa");%>

//*****************************************************************************
Fragment of the file httpd.conf (Apache 1.3.27)

<IfModule !mod_jk.c>
  LoadModule jk_module libexec/mod_jk.so
</IfModule>

Include /usr/local/jakarta-tomcat-4.1.18/conf/auto/mod_jk.conf

AddModule mod_jk.c

ServerName ged2.ufu.br
DocumentRoot "/web"

<Directory "/web">
.
.
.
</Directory>

<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.jsp
</IfModule>

NameVirtualHost 200.131.195.5


<VirtualHost 200.131.195.5:80>
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /web/ged/
   ServerName ged2.ufu.br
   ServerAlias www.ged.ufu.br
   ErrorLog /web/ged/logs/apache_error_log
   CustomLog /web/ged/logs/apache_access_log common
   JkMount /web/ged/*.jsp ajp13
</VirtualHost>

<IfModule mod_jk.c>
   JkWorkersFile "/usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties"
   JkLogFile "/usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log"

   JkLogLevel debug

   JkMount /examples ajp13
   JkMount /examples/* ajp13
</IfModule>
//************************************************************************
File workers.properties

workers.CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so
worker.inprocess.stdout=$(workers.CATALINA_HOME)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.CATALINA_HOME)$(ps)logs$(ps)inprocess.stderr
//************************************************************************
Fragment of the file server.xml (Tomcat 4.1.18)

<Host name="ged2.ufu.br" debug="0" appBase="/web/ged" unpackWARs="true" 
autoDeploy="true">
 <Alias>www.ged.ufu.br</Alias>
 <Logger className="org.apache.catalina.logger.FileLogger"
         directory="/web/ged/logs" prefix="tomcat_ged."
         suffix=".log" timestamp="true"/>
 <Context path="/web/ged" docBase="ged" debug="0"
          reloadable="true" crossContext="true"/>
</Host>
//************************************************************************
Directories of the application

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda8              3261056     32896   3228160   2% /web

root@ged2:/web/servidor > tree /web/ged/
/web/ged/
|-- index.jsp
|-- logs
|   |-- apache_access_log
|   |-- apache_error_log
|   `-- tomcat_ged.2003-01-17.log
`-- test
    `-- index.jsp

2 directories, 5 files
Sebastião Carlos Santos
Oracle Database Administrator
Universidade Federal de Uberlândia - UFU
Gratificação de Estímulo à Docência - GED

Reply via email to