Topic
1 reply Latest Post - ‏2013-06-13T11:11:50Z by fredrix17
fredrix17
fredrix17
4 Posts
ACCEPTED ANSWER

Pinned topic Redirection to search/login.jsp (Jetty with LDAP configuration)

‏2013-06-10T08:53:49Z |

Hi! I'm trying to configure search application for my domain.

I've configure Jetty to work on port 80 and when users type http://mydomain.com/ in browser

Jetty redirect them to http://mydomain.com/search/search.do?action=index

But when I configure LDAP auth page  http://mydomain.com shows the error page like 

Error 404 - Not Found.

No context on this server matched or handled this request.
Contexts known to this server are:

Please can somebody help me to confiure Jetty to redirect user to http://mydomain.com/search/login.jsp when they type http://mydomain.com/

Thanks!

Updated on 2013-06-10T09:09:47Z at 2013-06-10T09:09:47Z by fredrix17
  • fredrix17
    fredrix17
    4 Posts
    ACCEPTED ANSWER

    Re: Redirection to search/login.jsp (Jetty with LDAP configuration)

    ‏2013-06-13T11:11:50Z  in response to fredrix17

    I've found solution. To configurre redirection to search application from basic url like http://mydoamin.com

    in file

    %ES_HOME%\esadmin\master_config\searchapp\jetty-deployment.xml  

    change string from 

         <Call name="addHandler">
          <Arg>
            <New class="org.mortbay.jetty.webapp.WebAppContext">
              <Set name="contextPath">/search</Set>
              <Set name="war"><SystemProperty name="jetty.home" default="."/>/searchapp/search</Set>
              <Set name="extractWAR">false</Set>
              <Set name="copyWebDir">false</Set>
              <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/webdefault.xml</Set>
              <!--<Set name="overrideDescriptor"><SystemProperty name="session.config.dir" default="."/>override_web.xml</Set>-->
            </New>
          </Arg>
          </Call>

    to 

         <Call name="addHandler">
          <Arg>
            <New class="org.mortbay.jetty.webapp.WebAppContext">
              <Set name="contextPath">/</Set>
              <Set name="war"><SystemProperty name="jetty.home" default="."/>/searchapp/search</Set>
              <Set name="extractWAR">false</Set>
              <Set name="copyWebDir">false</Set>
              <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/webdefault.xml</Set>
              <!--<Set name="overrideDescriptor"><SystemProperty name="session.config.dir" default="."/>override_web.xml</Set>-->
            </New>
          </Arg>
          </Call>

    and if enable security settings the same change must be done in file  %ES_HOME%\esadmin\master_config\searchapp\jetty-deployment-secure.xml

    Thanks!

    Updated on 2013-06-13T11:12:55Z at 2013-06-13T11:12:55Z by fredrix17