You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ricardo A Bosch <rb...@actv.com> on 2001/06/12 18:08:09 UTC

The Answer is (Was: Tomcat/Apache mapping)

for anyone that cares

to get apache
/myapp/myServlet

add
ApJServMount /myapp/myServlet    	 /myapp/servlet/myServlet
and of couse the servlet must also be in web.xml



peace out

rick

On Tuesday, June 12, 2001, at 11:36 AM, Robert Slifka wrote:

> Sounds like just standard Tomcat/Apache setup stuff.  Make sure you 
> check
> the Tomcat-Apache  howto (on the tomcat docs page @ jakarta) since they 
> were
> written with exactly these kinds things in mind.
>
> - r
>
>> -----Original Message-----
>> From: pedro salazar [mailto:pedro-b-salazar@ptinovacao.pt]
>> Sent: June 12, 2001 11:14 AM
>> To: tomcat-user@jakarta.apache.org
>> Subject: Re: Tomcat/Apache mapping
>>
>>
>> I think I may have a problem like this one. I have a servlet
>> working fine
>> when I go by using port 8080 [directly to tomcat] that
>> simples write some
>> test to output. When I pick the servlet mapping by apache, it
>> shows me the
>> root of my web directory [the default is show index.html, but
>> there is no
>> index.html because I just want make some output test].
>> Apparently, the admin
>> context that comes with tomcat works well with apache or
>> tomcat directly.
>>
>> any help will be very appreciated...
>> thx
>> --
>> <psalazar/>
>>
>>
>> ----- Original Message -----
>> From: "Robert Slifka" <RS...@rim.net>
>> To: <to...@jakarta.apache.org>
>> Sent: Tuesday, June 12, 2001 4:01 PM
>> Subject: RE: Tomcat/Apache mapping
>>
>>
>>> Do you mean that it works when you access it via Tomcat's
>> HTTP port, but
>> not
>>> via Apache's?
>>>
>>> - r
>>>
>>>> -----Original Message-----
>>>> From: Ricardo A Bosch [mailto:rbosch@actv.com]
>>>> Sent: June 12, 2001 10:57 AM
>>>> To: tomcat-user@jakarta.apache.org
>>>> Subject: Tomcat/Apache mapping
>>>>
>>>>
>>>> Hey,
>>>> I'm having a crap of a time trying to run a servlet from tomcat
>>>> through apache without having to see the /servlet directory.  I've
>>>> messed with web.xml in my apps WEB-INF and the main
>>>> tomcat.conf file for
>>>> apache but I just cant get it to work.  Someone must know
>>>> this is easy,
>>>> I just dont understand the apache files well enough maybe.
>>>> I've gotten
>>>> the servlet to work out of the tomcat directory but not
>>>> throught apache.
>>>>
>>>> i have
>>>>
>>>> /myapp/servlets/myServlet   to work  (no sweat)
>>>> /myapp/myServlet   works too but only from the tomcat port.
>>>>
>>>> i want
>>>>
>>>> /myapp/myServlet from apache but HOW????
>>>>
>>>>
>>>> thanks();
>>>> in advance
>>>>
>>>>
>>>> rick
>>>>
>>
>