tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rogelio Estudillo" <restudi...@thewisenet.com>
Subject Help removing servlet prefix in tomcat-apache...
Date Thu, 15 Feb 2001 23:27:33 GMT
I need some help, please.

How do you set up a servlet to be called in the application space
but without the /servet/ prefix in tomcat-apache?

I removed the InvokerInterceptor entry completely and its running
very well in Tomcat standalone, but when I access the servlets in apache,
it doesn't work.

If I type in my URL as follows:

http://localhost:8080/myservlets/firstservlet

the servlet works ok.

if I type

http://localhost/myservlets/firstservlet

it doesn't.

What do I need to add/remove in the tomcat.conf, server.xml, web.xml,
httpd.conf, ...?

I'm using tomcat 3.2.

Thanks in advance,

Rogger.

##### tomcat.conf #####

LoadModule jserv_module libexec/mod_jserv.so

<IfModule mod_jserv.c>

ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

#ApJServDefaultHost localhost

ApJServDefaultPort 8007

ApJServMount default /root

AddType text/jsp .jsp

AddHandler jserv-servlet .jsp

ApJServMount /examples /root

</IfModule>

######### server.xml ######

<?xml version="1.0" encoding="ISO-8859-1"?>

<Server>

<ContextManager debug="0" workDir="work" showDebugInfo="true" >

....
.... I removed the InvokerInterceptor entry completely.
....

<Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true" >
</Context>

<Context path="/admin"
docBase="webapps/admin"
crossContext="true"
debug="0"
reloadable="true"
trusted="true" >
</Context>

<Context path="/myservlets"
docBase="webapps/myservlets"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>

</ContextManager>

</Server>

###################################



Mime
View raw message