tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth R. Kress <kkr...@home.com>
Subject web.xml, Apache and url-pattern
Date Fri, 01 Sep 2000 06:02:48 GMT
I've been searching the archives all night for an answer to this. I know this
issue has been answered before, but I just can't find it.

I'm trying to use the url-pattern in my context/WEB-INF/web.xml file to 
work. I can change the URL I use  *only* when using port 8080 to 
talk directly to tomcat. If I talk to Apache, the web.xml directives
seem to have no effect.

Here's a snippet from web.xml:
<web-app>
    <servlet>
        <servlet-name>
            AdminSrvlt
        </servlet-name>
        <servlet-class>
            AdminSrvlt
        </servlet-class>
    </servlet>
        <servlet-mapping>
            <servlet-name>
                AdminSrvlt
            </servlet-name>
            <url-pattern>
                /cgi_bin
            </url-pattern>
        </servlet-mapping>
</web-app>

This is in my $TOMCAT_HOME/conf/server.xml file: 

      <Context path="/intranet" 
                 docBase="webapps/intranet" 
                 debug="0" 
                 reloadable="true"> 
        </Context>

My tomcat-apache.conf is auto-generated and that's what's included
in my Apache httpd.conf file.

The following works:

http://localhost:8080/intranet/cgi_bin

but this fails:

http://localhost/intranet/cgi_bin

This also works (as you would expect): http://localhost/intranet/servlet/AdminSrvlt

What am I missing?

    Ken.

-- 
Kenneth R. Kress                                kkress@home.com
                                      kkress@ospreypartners.com

Mime
View raw message