0 Replies Latest reply: Dec 8, 2011 12:08 AM by 845107 RSS

    Virtual host redirection

    845107
      Hi All,

      We have a web site based on oracle portal and two virtual hosts have been defined in httpd.conf file as follows:

      <VirtualHost *:7779>
      ServerName www.mycompany.com
      Port 80
      ServerAdmin you@your.address
      RewriteEngine On
      RewriteOptions inherit
      OssoConfigFile /opt/oracle/product/portal_int/Apache/Apache/conf/osso/osso_www.conf
      OssoIpCheck off
      </VirtualHost>

      <VirtualHost *:7779>
      ServerName abc.mycompany.com
      Port 443
      AddCertHeader HTTPS
      ServerAdmin you@your.address
      SimulateHttps On
      RewriteEngine On
      RewriteOptions inherit
      RewriteRule ^/$ /portal/page/portal/MyHome [PT]
      OssoConfigFile /opt/oracle/product/portal_int/Apache/Apache/conf/osso/osso_abc.conf
      OssoIpCheck on
      </VirtualHost>

      Now when a request for abc.mycompany.com/PublicPages is made the request gets redirected to www.mycompany.com/PublicPages while the request for abc.mycompany.com/PrivatePages (requiring authentication) is served by abc.mycompany.com/PrivatePages itself.

      I want to know:

      1> How can I configure this type of behaviour for name based virtual hosts so that request for abc.mycompany.com/PublicPages is served by abc.mycompany.com/PublicPages itself and doesn't get redirected to www.mycompany.com/PublicPages.

      2> Where can I find the URL mappings for pages in the Oracle portal.

      3> How can I control the redirection of requests in general, on the basis of name based virtual hosts.

      Regards,
      Noaman