tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raoon Kundi <rku...@ti.com>
Subject Static content via AJP (specifically mod-jk2)
Date Mon, 30 Sep 2002 19:01:46 GMT
Hi,

Tomcat serves *.html's (static content) fine in the stand alone
mode but the same does not happen when a static file is requested
through apache using the mod-jk2

I have the following setup ...

      Apache  1.3.26
      Tomcat  4.1.12
      Solaris 6

More details are as follows ...

  when accessing stuff on the tomcat side via the AJP connector
  e.g., a URL of the form http://localhost/myContext/myfile.html
  I get a 404 error from apache.  Seems like the connector is
  not validating the request -- or something.  Other requests to
  the same server but with *.jsp extensions do however work.
  E.g., a URL of the form http://localhost/myContext/myfile.jsp
  will work just fine.

  Here is my workers2.properties ...

    [shm]
    #file=${serverRoot}/logs/shm.file
    file=/opt/apache/logs/shm.file
    size=1048576

    # Example socket channel, override port and host.
    [channel.socket:localhost:8009]
    port=8009
    host=127.0.0.1

    # define the worker
    [ajp13:localhost:8009]
    channel=channel.socket:localhost:8009

    [uri:/myContext/*]
    worker=ajp13:localhost:8009

    #[uri:/myContext/*.html]               <---- This did not work ...
    #worker=ajp13:localhost:8009

    # Map /jkstatus to the status worker.
    # define the worker
    [status:status]

    # Uri mapping
    [uri:/jkstatus/*]
    worker=status:status

    [logger]
    file=/opt/apache/logs/mod_jk2.log


If serving static content is not possible over the jk2 connector
I would like to know the reasoning behind it.

Thanks in advance ...

Regards,
-- 
Raoon Kundi

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message