tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard da Silva <roman_s...@yahoo.com>
Subject Re: Tomcat Re-direct
Date Mon, 18 Oct 2010 08:38:44 GMT
Thanks for your reply

Where is that "wt.jsp" file?

Also, my web-xml file looks like this :


<web-app xmlns="http://java.sun.com/xml/ns/javaee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
   version="2.5">

  <display-name>Welcome to Tomcat</display-name>
  <description>
     Welcome to Tomcat
  </description>

</web-app>



Where exactly should I insert the code you gave me?

Thanks

Richard da Silva

--- On Mon, 10/18/10, Karl San Gabriel <karl.sangabriel@gmail.com> wrote:

From: Karl San Gabriel <karl.sangabriel@gmail.com>
Subject: Re: Tomcat Re-direct
To: "Tomcat Users List" <users@tomcat.apache.org>
Date: Monday, October 18, 2010, 11:20 AM

and put a javascript code in wt.jsp to redirect to https://idm.my.org/idm.

On 10/18/10, Karl San Gabriel <karl.sangabriel@gmail.com> wrote:
> How about changing <TOMCAT_HOME>\webapps\ROOT\WEB-INF\web.xml?
> ===================
>   <description>
>      Welcome to Tomcat
>   </description>
>
> <!-- JSPC servlet mappings start -->
>
>     <servlet>
>         <servlet-name>org.apache.jsp.index_jsp</servlet-name>
>         <!--<servlet-class>org.apache.jsp.index_jsp</servlet-class>-->
>         <jsp-file>/wt/wt.jsp</jsp-file>
>     </servlet>
>
>     <servlet-mapping>
>         <servlet-name>org.apache.jsp.index_jsp</servlet-name>
>         <url-pattern>/index.jsp</url-pattern>
>     </servlet-mapping>
>
> ============
>
> Regards,
> Karl
>
>
>
>
> On 10/18/10, Richard da Silva <roman_seaa@yahoo.com> wrote:
>> Hi all,
>>
>> I have an IDM (Identity Manager) instance running on an Apache Tomcat
>> Server.
>>
>> My Tomact version is  : 6.0.18
>>
>> The http address which activates my IDM application is in the format :
>>
>> https://idm.my.org/idm
>>
>>
>> The thing is : if the address is accidentally written as follows ---
>> https://idm.my.org  ---- then the Apache Tomcat Main Page is displayed.
>>
>> Normally, this means nothing, and would not bother me. Except that, there
>> might be some security concerns involved in directing using to the Server
>> Main Menu.
>>
>> My question is :  how can I configure the Tomcat to automatically
>> RE-DIRECT
>> to the appropriate webpage ?
>>
>> In other words :  if  someone enters "https://idm.my.org", they will be
>> auto-directed to "https://idm.my.org/idm"
>>
>>
>> Thanks
>>
>> Richard da Silva
>>
>>
>>
>

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




      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message