Hello:

I am trying to use tomcat with apache and am having a
problem with my virtual host directory.

In my httpd.conf file, I added index.jsp to my listing
of index files:
DirectoryIndex index.jsp index.php index.html index.htm index.shtml
index.cgi

I also have the following virtual host defined:
<VirtualHost 216.65.31.3>
  DocumentRoot /home/httpd/videosearch

<Directory "/home/httpd/videosearch">
  Options Indexes FollowSymLinks
  AllowOverride None

  Order allow,deny
  Allow from all
</Directory>

</VirtualHost>

And I used this line to include my jakarta config file:
include /usr/local/jakarta-tomcat/conf/tomcat.conf

My tomcat.conf file is:
LoadModule jserv_module /etc/httpd/modules/mod_jserv.so

<IfModule mod_jserv.c>
# Do not edit! 
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultPort 8007

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

ApJServMount /examples /root

</IfModule>

I want files with a .jsp extension to be processed by tomcat 
and other files handled via Apache. 

According to the virtual host directive, when I visit
http://216.65.31.3
I should get the files from /home/httpd/videosearch directory.
But, when I do so, I get the file:
/usr/local/jakarta-tomcat/webapps/ROOT/index.html\
which is not what I wanted.

Also, when I try to load the URL:
http://216.65.31.3/index.jsp
I get a 404 not found error.

This file I wanted to load was:
/home/httpd/videosearch/index.jsp
Which I know is there.

Also, If I try to load this URL
http://216.65.31.3/test.html
It loads the file /home/httpd/videosearch/test.html
which is what I wanted.

Any ideas?

Thanks,
        Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

Reply via email to