Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This is my Virtual Host configuration:

<VirtualHost 127.0.0.1:4001>
    DocumentRoot /home/myusername/Documents/www

    JkMount /*.jsp ajp13_worker

    Options FollowSymLinks

    ErrorLog ${APACHE_LOG_DIR}/error.log
</VirtualHost>

So my DocumentRoot points to /home/myusername/Documents/www.

The problem when visiting localhost:4001 is this:

  1. If I place index.html in this directory, then it's displayed.
  2. If I place index.jsp in this directory, then the /var/lib/tomcat7/webapp/index.jsp will be displayed.

So my question is:

How to configure Tomcat to handle jsp files from Apache DocumentRoot?

share|improve this question
    
have loaded the module? which versions of apache and tomcat? –  Marcel Apr 11 '13 at 16:22
    
@Marcel I sovled this by changing the docBase in server.xml :) –  gongzhitaao Apr 11 '13 at 16:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.