The servletmapping is not taken into account when generating the auto-conf
files.
rename the file, edit it to your needs and include that one in your
httpd.conf

Reagards,
Andreas

> -----Original Message-----
> From: Martin W. Smith [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 20, 2000 4:03 PM
> To: [EMAIL PROTECTED]
> Subject: servlet-mapping question
> 
> 
> I have installed a servlet in a webapp directory named metis.  I can
> run the servlet with the URL:
> 
> http://myplace.no/metis/servlet/XlnWebServlet/pub/models/training.kmv
> 
> ...but I want to use this instead:
> 
> http://myplace.computas.no/metis/repository/pub/models/training.kmv
> 
> In the web.xml file, I added this after the servlet element for
> XlnWebServlet:
> 
>     <servlet-mapping>
>         <servlet-name>
>             XlnWebServlet
>         </servlet-name>
>         <url-pattern>
>             /repository/*
>         </url-pattern>
>     </servlet-mapping>
> 
> ...but it doesn't work.  The problem is the tomcat-apache.conf file
> that is automatically generated.  It contains this:
> 
> Alias /metis C:\opt\tomcat\webapps\metis
> <Directory "C:\opt\tomcat\webapps\metis">
>     Options Indexes FollowSymLinks
> </Directory>
> ApJServMount /metis/servlet /metis
> <Location /metis/WEB-INF/ >
>     AllowOverride None
>     deny from all
> </Location>
> 
> If I change the ApJServMount to:
> 
> ApJServMount /metis /metis
> 
> ...then the URL I want to use works.  The problem with this is that
> tomcat
> generates tomcat-apache.conf automatically, which is nice, but it
> always wants to put /metis/servlet there instead of just /metis.  Is
> there a reason for appending "servlet" there?  I don't want that word
> to appear in the URLs.  Can I configure the way tomcat generates the
> apache-tomcat file so that it does not append /servlet ?
> 
> Also, I am running this on Windows 2000.  Hopefully, eXcelon will
> support linux next year.  Until then, since tomcat must be started
> before Apache, does anyone know how to tell Windows 2000 to start
> tomcat before Apache?  
> 
> martin
> 
> -- 
> Martin Smith             email: [EMAIL PROTECTED]
> Vollsveien 9               tel. : +47 6783 1202
> P.O. Box 482
> 1327 Lysaker, Norway
> 

Reply via email to