You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Smith <dn...@cornell.edu> on 2007/06/08 13:05:45 UTC

Re: mime type problem and aliasing as well

Best suggestion I can offer is to have a configurable filter in the ROOT 
webapp that looks at the request and does a client side redirect to the 
proper target.  The client side redirect will correct the url in the 
browser for all future reference.

--David

Arian Abrahantes wrote:

> Hi all:
>
> mime problem solved had to change more deeper in the config, down to 
> opencms. So now alias question is what's missing.
>
> cheers and TIA,
>
> arian
>
> Arian Abrahantes wrote:
>
>> Hi All:
>>
>> I am new to the list and to web administration as well. I used tomcat 
>> 4.1 connected via proxy to apache 2.2. I deployed opencms into 
>> tomcat. Everything works fine but I am having a problem with special 
>> mime types in my site I have some extensions quite peculiar, for 
>> instance "whatever.par" it should be treated as binary (I declared 
>> this type into opencms workplace) I also make the change in tomcat as 
>> follows:
>>
>>    <mime-mapping>
>>        <extension>par</extension>
>>        <mime-type>application/octet-stream</mime-type>
>>    </mime-mapping>
>>
>> I added the mime type to apache as well
>>
>> Addtype application/octet-stream .par
>>
>> Yet the browser or wget display the binary not asking for anything 
>> else. I think I also tried to cheat apache declaring this extension 
>> as tar or gz: useless.
>>
>> Regarding alias in Tomcat, I want that a folder be accessed either 
>> "mydomain.com/Folder" or "mydomain.com/folder". So just  like the 
>> alias in apache but I couldn't make it work there since the folder 
>> reside within tomcat. So can I manage folder alias in tomcat?
>>
>> any help is welcome
>>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: mime type problem and aliasing as well

Posted by Arian Abrahantes Quintana <Ar...@cern.ch>.
Hi David
 
thanks very much. I googled for a while and I think I am going to use URLrewrite. antry I think it fits my needs,
 
cheers,
 
arian

________________________________

From: David Smith [mailto:dns4@cornell.edu]
Sent: Fri 6/8/2007 1:05 PM
To: Tomcat Users List
Subject: Re: mime type problem and aliasing as well



Best suggestion I can offer is to have a configurable filter in the ROOT
webapp that looks at the request and does a client side redirect to the
proper target.  The client side redirect will correct the url in the
browser for all future reference.

--David

Arian Abrahantes wrote:

> Hi all:
>
> mime problem solved had to change more deeper in the config, down to
> opencms. So now alias question is what's missing.
>
> cheers and TIA,
>
> arian
>
> Arian Abrahantes wrote:
>
>> Hi All:
>>
>> I am new to the list and to web administration as well. I used tomcat
>> 4.1 connected via proxy to apache 2.2. I deployed opencms into
>> tomcat. Everything works fine but I am having a problem with special
>> mime types in my site I have some extensions quite peculiar, for
>> instance "whatever.par" it should be treated as binary (I declared
>> this type into opencms workplace) I also make the change in tomcat as
>> follows:
>>
>>    <mime-mapping>
>>        <extension>par</extension>
>>        <mime-type>application/octet-stream</mime-type>
>>    </mime-mapping>
>>
>> I added the mime type to apache as well
>>
>> Addtype application/octet-stream .par
>>
>> Yet the browser or wget display the binary not asking for anything
>> else. I think I also tried to cheat apache declaring this extension
>> as tar or gz: useless.
>>
>> Regarding alias in Tomcat, I want that a folder be accessed either
>> "mydomain.com/Folder" or "mydomain.com/folder". So just  like the
>> alias in apache but I couldn't make it work there since the folder
>> reside within tomcat. So can I manage folder alias in tomcat?
>>
>> any help is welcome
>>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org