You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Neil Aggarwal <ne...@JAMMConsulting.com> on 2000/11/30 01:23:33 UTC

Directory problem

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

RE: Directory problem

Posted by Saurabh Shukla <sa...@cysphere.com>.
You have add a few things in your server.xml like specifying the Doc base
for a context.
Have you done that ?

Shuklix


-----Original Message-----
From: Neil Aggarwal [mailto:neil@JAMMConsulting.com]
Sent: Thursday, November 30, 2000 5:54 AM
To: tomcat-user@jakarta.apache.org
Subject: Directory problem


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