1 Reply Latest reply: Jun 25, 2009 12:00 PM by 807573 RSS

    Virtual Multihosting - how to redirect homepage?

    800622
      Hi,

      I have setup Virtual Multihosting so that requests to https://abc.domain.com are proxied to https://10.0.0.2:1234
      This works quite ok.

      Now I'd like to have all the requests to the https://abc.domain.com homepage redirected to https://10.0.0.2:1234/dir
      (cannot use virt-map for this, as the /dir still uses some resource from the root)
      all I tried did not work

      I tried
      Nametrans fn="home-page" path="/dir/index.jsp"
      as well as various redirects, but none worked


      my obj.conf:
      <Object name="default">
      AuthTrans fn="match-browser" browser=".*MSIE.*" ssl-unclean-shutdown="true"
      NameTrans fn="virt-map" host-regex="abc(|.domain.com)(|:443)" to-prefix="https://10.0.0.2:1234"
      PathCheck fn="url-check"
      ObjectType fn="block-ip"
      Service fn="proxy-retrieve"
      AddLog fn="flex-log" name="access"
      </Object>

      <Object name="file">
      PathCheck fn="unix-uri-clean"
      PathCheck fn="find-index" index-names="index.html,index.jsp"
      ObjectType fn="type-by-extension"
      ObjectType fn="force-type" type="text/plain"
      Service fn="send-file"
      </Object>

      <Object ppath="https://.*">
      Service fn="proxy-retrieve"
      AddLog fn="flex-log" name="log0"
      </Object>

      WPS4.0.8@Solaris10/sparc

      Edited by: hajma on Dec 17, 2008 8:46 AM