in server.xml change default port from 8080 to 80.
Do the text search for 8080 in that xml file.
That's it, unless you run Apache on same port.



-----Original Message-----
From: Rogelio Estudillo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 3:28 PM
To: [EMAIL PROTECTED]
Subject: Help removing servlet prefix in tomcat-apache...


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>

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to