Apache/Tomcat configuration issue

Discussion in 'Java' started by laredotornado@zipmail.com, Nov 2, 2006.

  1. Guest

    Hi, On Fedora Core 5 I have Apache 2.2, Tomcat 5.5, and mod_jk 1.2
    installed. These are the install directories

    tomcat - /usr/local/tomcat
    apache - /usr/local/apache2

    I would like JSP files within /usr/local/apache2/htdocs to be
    interpreted by Tomcat and right now, the raw source prints out. What
    configuration directives do I need to add to my httpd.conf file? Right
    now, the directives I have are

    LoadModule jk_module modules/mod_jk.so
    # Where to find workers.properties
    JkWorkersFile conf/workers.properties
    # Where to put jk logs
    JkLogFile logs/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel debug
    # Select the log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # JkOptions indicate to send SSL KEY SIZE,
    JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
    # JkRequestLogFormat set the request format
    JkRequestLogFormat "%w %V %T"

    # Send JSPs for context /jsp-examples to worker named default
    JkMount /jsp-examples/*.jsp default
    # Send servlets-examples to worker named default
    JkMount /servlets-examples/* default
    # Send JSPs for context /jsp-examples to worker named default
    JkMount /*.jsp default

    # Static files in the jsp-examples webapp are served by apache
    Alias /jsp-examples "/usr/local/tomcat/webapps/jsp-examples/"

    Options FollowSymLinks

    # Static files in the servlets-examples webapp are served by apache
    Alias /servlets-examples "/usr/local/tomcat/webapps/servlets-examples/"

    Options FollowSymLinks


    Thanks for the help, - Dave
    , Nov 2, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrea M. Segovia
    Replies:
    7
    Views:
    5,863
    Sudsy
    Mar 1, 2004
  2. Christos Gravvanis
    Replies:
    0
    Views:
    2,030
    Christos Gravvanis
    Jul 7, 2004
  3. sjoshi
    Replies:
    0
    Views:
    6,599
    sjoshi
    Sep 27, 2005
  4. twins
    Replies:
    1
    Views:
    5,830
  5. Replies:
    2
    Views:
    1,112
Loading...

Share This Page