Redirecting to www

Hi,
We have a code snippet that does a permanent redirect from domain.com to www.domain.com.  We place this code in onSessionStart and onRequestStart functions in Application.cfc  (let's just assume that there is a reason why we place it in both functions).
So the code has been working until last week when we moved from CF8 to CF9 (with Windows Server 2008).  Suddenly, instead of redirecting from http://domain.com/index.cfm to http://www.domain.com/index.cfm, the code redirects to http://www.domain.com/index.cfm,http://www.domain.com/index.cfm (yes, repeated with a comma).
After many testings, we finally figured out that this problem only occurs because we put the code in both onSessionStart and onRequestStart.  Somehow, both redirections get triggered though I don't quite understand how.  My understanding is that if a user types in domain.com in the beginning, onSessionStart will redirect him/her to www.domain.com.  The redirection code in onRequestStart should only get triggered if a user types in domain.com in the middle of his/her session.
Any idea why?  It worked fine in CF8 but not in CF9.
Thank you in advance!
<cffunction name="onSessionStart" returnType="void" output="true">
    <cfif cgi.server_name neq 'www.domain.com'>
        <cfheader statuscode="301" statustext="Moved permanently">
        <cfset strNewURL = "http://www.domain.com" & cgi.path_info>
        <cfheader name="Location" value="#strNewURL#">
    </cfif>    
</cffunction>
<cffunction name="onRequestStart" returnType="boolean" output="true"> 
    <cfargument name="thePage" type="string" required="true">
    <cfif cgi.SERVER_NAME neq 'www.domain.com'>
        <cfheader statuscode="301" statustext="Moved permanently">
        <cfset strNewURL = "http://www.domain.com" & cgi.path_info>
        <cfheader name="Location" value="#strNewURL#">
    </cfif>    
    <!--- This is to expire session so we can run the code again immediately (from rickosborne.org)--->
    <cfset ServerName=LCase(CGI.SERVER_NAME)>
    <cfset structClear(Session)>
    <cfloop condition="listLen(ServerName,'.') gte 2">
        <cfloop list="CFID,CFTOKEN,CFMAGIC,SESSIONID,JSESSIONID" index="CookieName">
            <cfcookie expires="NOW" name="#CookieName#" domain=".#ServerName#">
            <cfcookie expires="NOW" name="#CookieName#" domain="#ServerName#">
            <cfcookie expires="NOW" name="#CookieName#">
        </cfloop>
        <cfset ServerName=listRest(ServerName,".")>
    </cfloop>
    <cfreturn true>
</cffunction>

1.  The reason we put it at the beginning of onSessionStart is because onSessionStart has a number of instantiations (components and session variables).  So I thought if I just put the code only in onRequestStart, we would be 'wasting' those instantiations (ie. someone goes to domain.com, goes thorough all of onSessionStart function only to be thrown to www.domain.com with its own onSessionStart).
All the more reason to get this sorted out before CF gets involved, I'd say.  It takes about 30sec to sort this out on IIS.
  But I am curious to know why the code is not working as I expected.  Is it the way onSessionStart work or the way cfheader work?
I had a closer look at your code, and a bell started ringing.  I have some vague recollection that I found that when one uses <cfheader> to add the same header value multiple times, CF compiles it into one name/value pair, as a comma-delimited list.  I did raise this on some forum somewhere, but I cannot find it with Google.  You can probably test this by checking what's in the headers with an HTTP sniffer.
I suspect what's happening is that for a given request, all of onApplicationStart(), onSessionStart() and onRequestStart() (if applicable) will be processed, so you're actually adding the header twice, because both onSessionStart() and onRequestStart() are running.  You might be able to mitigate this by:
a) using <cflocation> instead of two <cfheader> lines.  I mean... why aren't you use using <cflocation> anyhow?
b) sticking a <cfabort> after the <cfheader> tags, in both cases.
But, really... use the web server to do a job that is actually intended for the web server to be doing.  This is a square peg / round hole situation you're trying to get working here.
Adam

Similar Messages

  • Use ACE to redirect or insert a WWW in a client request

    I am using ACE 4710s running 4.1 to load balance web traffic across our web server farms.  Redirection is configured to redirect http to https.  There is a new requirement to redirect a request that does not include the "www" in the URL to include the "www".  In other words, if a client merely types "mytesturl.com/test1" the ACE is to redirect or rewrite and insert the www so the request becomes"www.mytesturl.com/test1".  I am searching through the documentation, but thought I would pick the collective brains of the community at the same time to see who can come up with the correct answer first.  Below is a sample of the working config.
    Thanks in advance,
    mb
    rserver host RS_TEST_01
      description ***Test Producation Host***
      ip address 10.64.64.45
      inservice
    rserver redirect RD_EC
      description ***TEST Sub-Site***
      webhost-redirection https://www.test.com/EC/
      inservice
    rserver redirect http
      webhost-redirection https://%h%p 301
      inservice
    serverfarm redirect REDIRECT
      rserver http
        inservice
    serverfarm host SF_TEST
      rserver RS_TEST_01 80
        inservice
    serverfarm redirect SF_EC
      description ***Test Sub-Site***
      rserver RD_EC
        inservice
    sticky ip-netmask 255.255.255.0 address both STICKY_TEST_1
      timeout 600
      replicate sticky
      serverfarm SF_TEST
    ssl-proxy service SSL_TEST_1
      key TEST_KEY
      cert TEST_CERT
      chaingroup VERISIGN
      ssl advanced-options SSL_TERMINATION
    class-map match-any TEST_VIP_01
      description ***VIP for TEST***
      2 match virtual-address 10.64.74.45 tcp eq https
    class-map type http loadbalance match-all TEST_EC
      2 match http url /ec*
    policy-map type loadbalance first-match LB_TEST_01
      description ***Load Balancing Policy for Test***
      class TEST_EC
        serverfarm SF_EC
    policy-map type loadbalance first-match LB_REDIRECT
      description L7SLBPolicy-Redirect
      class class-default
        serverfarm REDIRECT
    policy-map multi-match NEW_WEB_POLICY
      class TEST_VIP_01
        loadbalance vip inservice
        loadbalance policy LB_TEST_01
        loadbalance vip icmp-reply active
        ssl-proxy server SSL_TEST_1
    interface vlan 474
      description ***Front End VIP interface***
      ip address 10.64.74.254 255.255.255.0
      alias 10.64.74.252 255.255.255.0
      peer ip address 10.64.74.253 255.255.255.0
      access-group input TEST_WEB
      service-policy input TEST_WEB_POLICY
      no shutdown

    Hi Michael,
    The configuration to achieve this would be something like the one below. I wrote it without trying it in the lab first, so, make sure to test it before putting it in production (specially the syntax of the regular expressions)
    rserver redirect http
      webhost-redirection https://%h%p 301
      inservice
    rserver redirect http_and_www
      webhost-redirection https://www.%h%p 301
      inservice
    serverfarm redirect REDIRECT
      rserver http
        inservice
    serverfarm redirect REDIRECT_and_www
      rserver http_and_www
        inservice
    class-map type http loadbalance match-all http_with_www
      2 match http header Host header-value www.*
    policy-map type loadbalance first-match LB_REDIRECT
      description L7SLBPolicy-Redirect
      class http_with_www
        serverfarm REDIRECT
      class class-default
        serverfarm REDIRECT_AND_WWW
    I hope this helps
    Daniel

  • Hello Everyone. My old web site needed  a redirect to a "non www version" because of duplicate content. Is the same true for Muse site?

    I made a website from Muse and want to launch it.
    Question1)Will there be a www version and a non www version like on my current web page built in DW?
    I never launched 2 websites. It just needed a "301 redirect" because when I ran a check on my website it said my page ranking was being lowered because there are two versions of my web site on line.
    Red Nose American Pit Bull Terriers Sale Humboldt Pit Bulls (www)
    Red Nose American Pit Bull Terriers Sale Humboldt Pit Bulls (non www)
    Thank you.
    Tim

    301 redirect was created.
    The site is hosted on Godaddy and after 1 or 2 calls I was able to make the redirect. They made it pretty easy.
    However I am still not sure if its better to redirect a www. to a non www, or a non www to a www.version of your site.
    As long as there is a redirect, the content is not duplicated. That is the main thing I was trying to accomplish.

  • How can I redirect a URL with aliases or redirect?

    Hi all,
    I have this partially working on my servers, but am not 100% sure I am doing this corerectly.
    Basically I have a Web site domain, let's call it product.com
    In server admin I have a site set up called www.product.com under port 80 and another under port 443 for my SSL pages.
    Here is my problem: If a customer types "product.com" in their favorite Web browser address bar, I would very much like the server to automatically redirect them (if that's the correct term) to "www.product.com"   Currently they would end up on http://product.com/index.html when they key in the URL without the "www"  I am concerned this is hurting my SEO and Google analytics as well as being an issue internally for PHP pages that are coded to the "www" addresses.
    I also have a sign-in page for my clients at the address: http://www.product.com/lib/app/auth/authenticate.php.  When a client types "signin.product.com" I want them to go to that long URL for the sign-in page.  I have gotten this to work by setting up a new Site in Server Admin > Web > Sites named "signin.product.com" which then has a single entry on the redirect tab with the URL of the signin page above.  Not sure if that could have been done on the core Web site (www.product.com) or if that was the way I should do it under Server Admin or if there is an easier way to do it.
    Primarily I want to be able to handle redirecting any type of subdomain "xxx.product.com" to another address.  The primary one I want to deal with now is the "product.com" redirecting to "www.product.com".....  Should I just set up another Web site in Server Admin with a redirect like I did for "signin.product.com"?
    Any advice on doing proper redirection appreciated.
    -- Jon

    There are so many ways you could do this. You need to pick what's right for you.
    Some of the options are available through the GUI. Many more are available once you get under the hood and drive Apache directly. Your skill and comfort level will undoubtedly influence which path you take.
    At the first level, Apache groups sites together by the hostname used to access the site.
    If you want 'www.product.com' to go to the same place as product.com you could create one site with an alias, so that Apache uses the same 'site' configuration for both hostnames.
    If you want the two hostnames to do different things then you could create two sites - in this case 'www.product.com' has the full, normal site and 'product.com' has a redirect to the equivalent page on 'www.product.com'.
    Within www.product.com you can also setup selective redirects to the HTTPS site. This will ensure that things like the login form are accessed securely. In this way your HTTPS site is another 'site' in Apache with the SSL configuration.
    One caveat in your post is the use of 'signin.company.com'. You don't describe your network, but if you have only 1 public IP address then this is going to be an issue since you cannot easily run multiple SSL sites on a single IP address - you'll need a different public IP address for each SSL site. This is because the SSL negotiation occurs before Apache knows what site the request is for, and therefore it doesn't know which SSL certificate to use for the connection.
    So, in general, you'll create one site for each variation in your web setup - one for 'www.product.com/port 80', one for 'www.product.com/port 443', one for 'product.com/80' (which redirects to 'www.product.com'), and so on.

  • How can I redirect a web page.

    I'm not sure if this is really an iWeb issue but I thought I would start here.
    I have a web site (www.replacementchild.com) that is hosted at a third party (not MobileMe). I have used the Blog tool at the hosting site to build a blog for the site (www.blog.replacementchild.com). I have used a snippet to embed the actual blog content into the blog page of my site (www.replacementchild.com/blog.html).
    Everything works fine except that the web crawlers pick up the actual blog url (www.blog.replacementchild.com) which brings up the unformatted page and there is no way to get the user back to the actual web site.
    I think I need some way to redirect the blog url to the actual web site url but can't figure out how to do that. Any thoughts or suggestions would be appreciated.
    Thanks,
    David

    OT:
    I'm making progress but I'm not quite there yet.
    I have actually installed an SQL Database and my own session of WordPress on my hosting service to get better control over the WordPress blog. I put the redirect statement into the footer of my blog template page and it seems to work but only the first time.
    What I mean by that is that since the blog is in an iFrame on my iWeb page, when I try to navigate on the blog page, it seems to do a second redirect and puts a new frame inside the first frame. To see what I mean, go to www.replacementchild.com and select the blog page then select any link on the blog page and you'll see a second frame is drawn.
    The url for the blog itself (which is being redirected is www.replacementchild.com/blog
    I suspect I've done something wrong. Any suggestions?
    Thanks for all your help.
    David
    Message was edited by: David Schwartzer

  • How to redirect a page

    Hi,
    I try to create a page the is redirected to another page, but don't work.
    What can I do? When the page is redirected the top level navigation must be refreshed?
    I write this code:
    IPageContext myContext = PageContextFactory.createPageContext(request, response);
    if (myContext == null) {
    System.out.println("htmlb service did not start up as expected.");
    String URL = path to page in PCD;
    Document mydocu = myContext.getDocument();
    mydocu = myContext.createDocument("Pagina da redirigere");
    mydocu.setHeadRawText("<meta http-equiv=\"refresh\" content=\"1; url=" + URL +  "/>");
    Anybody can help me?
    Thanks in advance.
    regards,
    Stefano

    Hi,
    I don't know if this solves your problem, but this is an iView that redirects to www.google.es:
    <pre>
    import java.io.IOException;
    import com.sapportals.portal.prt.component.*;
    import javax.servlet.http.HttpServletResponse;
    public class Redirect extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              HttpServletResponse resp = request.getServletResponse(true);
              try {
                   resp.sendRedirect("http://www.google.es/");
              } catch (IOException e) {
                   e.printStackTrace();
    </pre>
    Hope it helps,
    jc!

  • Does not Redirect to requested page

    Hi,
    We are trying to deploy Sun Access Manager with Policy Agent 2.2 on Sun Application server 9.1 and Sun WebServer in Solaris.
    I have detailed below the steps followed by us to deploy on Solaris 64-bit machine.
    We have the following two machines. (Both are 64 bit Sparc 9 Machines)
    1. solaris9.tricipher.com
    Following is the configuration.
    �     Sun Java Application Server 9.1
    �     Sun Java System Access Manager 7.1
    Steps performed while configuring the Sun Java System Access Manager 7.1.
    1.     We created a policy named "TriCipher Policy".
    2.     We created a rule named http://sol9test.tricipher.com: 80/TC/welcome.html
    and allow for both GET & POST.
    3.     We created the subject named "TriCipher Subject" and select "All Authenticated Users "option with it.
    4.     We created the user named "tricipheruser" and password.
    5.     We created the agent named "tricipheragent" and password
    2. sol9test.tricipher.com
    Following is the configuration.
    �     Sun Java System Web Server 7.0
    �     Sun Java System Access Manager Policy Agent 2.2 for Sun Java System Web Server 7.0
    Steps performed while configuring the Sun Java System Web Server 7.0
    1.     We deployed a .war file named "TC.war". This file contains the simple html file (welcome.html)
    2.     We installed the above specified policy agent, which created the file "AMAgent.properties".
    3.     While installing the policy agent we specified the agent name "tricipheragent" and its password after encrypting it.
    When we tried to access to protected URL from the windows machine of same domain it redirected us to the login page of the Sun Java System Access Manger 7.1 as expected.
    We entered the username "tricipheruser" and its password, it verified the user details and it forward the request to the browser with the desired URL, however, and it shows a blank page.
    We have checked the web server log and found the following error. "Failure for host 10.66.8.15 trying to GET /TC/welcome.html, func_exec reports: HTTP2302: Function
    validate_session_policy aborted the request without setting the status code"
    We have identified that the error is at validate_session_policy (PathCheck is the node), which is called in obj.conf at the agent in the web server config folder. (Attached herewith the modified obj.conf folder)
    Further we have tried the following too:
    1. Tried with IIS Server with the policy agent deployed. However, the
    result is same.
    2. Secondly we removed all policy agent and configure the Sun Access
    Manager such that, on successful login in the Sun Access Manager it will redirect to www.yahoo.com page. It works fine.
    3. Thirdly we modified the configuration, such that the successful login of Sun Access Manager will redirect to our site i,e.
    http://iis-02-tricipher.com: 80/login.html. Now we are getting blank page.
    In order to identify what is coming in the http header; we have installed "http live Header" in Fire fox browser and found that there is an error HTTP/1.x 500 Internal Server Error. We could not find the reason for this.
    Looking forward to your help.
    Thanks
    Prashant Kumar Singh
    09891343317
    [email protected]
    [email protected]

    Hi,
    One thing that could help is to look at the info in the agent logs, first increase Debug Logging Level, then restart the agent server and click thru your app, then look in agent runtime logs which should have more descriptive errors. For more detail on how to do this, try http://wikis.sun.com/display/OpenSSO/GlassFishAgentTrouble#GlassFishAgentTrouble-generaltips
    You could look on this page, which is mostly based on GlassFish server but could help for other servers as well.
    http://wikis.sun.com/display/OpenSSO/GlassFishAgentTrouble
    I have not installed either of the policy agents you mentioned. But with some of the other agents, like the Sun App server 9 (GlassFish) agent, it comes with a sample application, and I find that this is the best way to ensure your setup is good and you are following all steps etc. Once sample app is up, you can try your own apps with confidence.
    Since you already have the SJSAS 9 installed, maybe you could create a new domain and download/install the SJSAS 9 policy agent on the new domain. Then try out the sample app?
    Or if those other agents have a sample app then try it out.
    hth,
    Sean

  • Ace Redirect and re-write

    Can anybody point me in the right direction for changing the URL when the ACE is performing the redirection?
    I have the standard ace redirection to HTTPS set up and it is working fine.
    I have a wildcard certificate *.abc.com but when the application was being tested the URL abc.com kicks up a certificate error in the browser.
    Not sure if I should have set the CN as *acb.com when ordering it but its done now.
    I am wanting to redirect when http://abc.com is put in the client browser to https://www.abc.com
    I have tried reading these forums and using header rewrite to change the location on response but it just doesn't seem to work.
    I have tried deleting/renaming/replacing the host header on request and rewrite/delete on response. Tried all sorts of regex nothing works.
    I can insert a header so I know the action is being hit, just can't seem to change the host on request or location on response.
    Any idea's?
    I am guessing the inner workings only allow for modification of these headers when the redirects are being done by the server and the headers are passing through the load balancer.
    on latest 5(2.1) version
    example of one I tried
    action-list type modify http ABC_MODIFY
      header rewrite response location header-value "https://abc(.*)" replace "https://www.abc%1"
    then applied to policy redirect map

    I tried another approach which seemed to work.
    rserver redirect RED2A
    webhost-redirection https://www.%h 302
    inservice
    rserver redirect RED2
    webhost-redirection https://%h 302
    inservice
    serverfarm redirect RED2-VIP-IN
    rserver RED2
    inservice
    serverfarm redirect RED2A-VIP-IN
    rserver RED2A
    inservice
    class-map type http loadbalance match-any RED2A-VIP-IN
    2 match http header Host header-value "abc.com"
    class-map match-any RED2-VIP-IN
    2 match virtual-address x.x.x.x tcp eq www
    ..etc
    policy-map type loadbalance first-match RED2-VIP-IN-LB-POLICY
    class RED2A-VIP-IN
      serverfarm RED2A-VIP-IN
    class class-default
      serverfarm RED2-VIP-IN
    this seemed to redirect the abc.com to https://www.abc.com and the other requests like other.abc.com to https://other.abc.com
    I tried regex for the header value match like [^\.]abc.com and ^abc.com but these didn't seem to match.

  • How do I redirect to the default domain without showing home.html in the url

    Is there a way to redirect the following domains to the default domain.
    www.membersalliance.com.au//
    www.membersalliance.com.au/index.aspx 
    The default domain is www.membersalliance.com.au
    We have been told that these pages are seen by google as separate content and we want to consolidate them to all go to the default domain.
    I have spoken to adobe support and they said that:
    Redirecting to another page can be done, there's no issue with that. But what we're looking for here is to not have any other postfix with the domain name. When a page is set to be the starting page, there is an automatic functionality that the postfix/name of the page is removed, but that is not the case with other pages.So, they would still show the name of the page, even if you redirect it to the home page (starting page set for your domain).
    So, I can redirect to www.membersalliance.com.au/home.html but is this seen by google as a separate page to www.membersalliance.com.au?

    To be able to redirect a website with a submit button, you must have a custom submit button and insert the following line:
    app.launchURL("www.url.com");

  • ACE Redirect not working

    We have a ACE redirect configured on 3 physically seperate ACE modules with the following config. It works on one ACE Module and not on the other 2.
    Capture on the ACE and sniffer gives this error.R [bad tcp cksum 2d41!] ACE sends resets to the client. Anyone run into this issue?
    The software version is   system:    Version A2(1.0a) [build 3.0(0)A2(1.0a)
    rserver redirect Test
      webhost-redirection http://www.test.com
      inservice
    serverfarm redirect Test
      rserver Test
        inservice
    class-map match-any Test
      2 match virtual-address 192.168.10.10 tcp eq www
    policy-map type loadbalance first-match Test
      class class-default
        serverfarm Test
    class Test
        loadbalance vip inservice
        loadbalance policy Test
        loadbalance vip icmp-reply active

    Sorry maybe I didn't explain what I was getting at good enough...
    I guess I'm basically asking if there's potential for asymmetry at the site that's not working.
    For example.
    Say I have a load balanced server. It has two interfaces a "front end" and a "back end".  I manage the server on the backend from my laptop, for which the server has a route.  Now if I try to hit the public VIP of the LB, traffic is routed to the VIP, then to the server, but because the server already has a route to my laptop via the backend, it bypasses the load balancer on the return and replies directly to me, thus putting the flow out of sync and never completing the connection...
    Not saying that's it, but I've had so many asymmetry issues that are tough to figure out that It's usually one of the first things I rule out...
    It's possible if the site that's not working is local to you and the others aren't, this may be a potential issue??

  • Redirecting from an abstract portal component

    Hi,
    I'm trying to redirect from an abstract portal component to a quicklink. I do it like told in this thread:
    Redirecting to external website from abstract portal component?
    private void redirectUrl(String target, IPortalComponentRequest request) {
      try {
        HttpServletResponse resp = request.getServletResponse(true);
        resp.sendRedirect("../../../../portal/" + target);
      } catch (IOException e) {}
    It works, but the content of my target-URL is still in the Portal-Frame. So I've two time the Portal-Framework-Navigation. Something like this:
    | Welcome         |
    | Welcome         |
    | content         |
    |                 |
    |                 |
    |                 |
    My goal is to redirect the whole page, not only the frame.
    Thanks for any help...
    Regards, Markus

    Perhaps I can do it with
      public void doOnNodeReady(IPortalComponentRequest request){
        request.redirect("http://www.google.de");
    But like in this Tread, it didn't work AbstractPortalComponent and doOnNodeReady

  • My website redirects to OpenDNS ONLY in Safari. Please help!

    Safari redirects my website, http://kyleayers.com to OpenDNS stuff every time. This doesn't happen in Firefox or Chrome. Anyone have any advice?
    Thank you so much.
    Kyle

    You need to type in the    www
    Otherwise it will redirect.
    http://www.kyleayers.com

  • Redirecting links in event summaries

    I have been placing URLs in the "notes" section of a syllabus posted the normal way to .mac
    When a user clicks on an event, a small window pops up with Subject, Start Date, End Date, and Summary, which now contains a live link to the URL. So far, so good.
    That link is (today) constructed as:
    http://ical.mac.com/redirect/http://www.myserver/filename.extension
    Sometime recently, this has STOPPED WORKING, in particular, the "redirect" script is producing:
    Forbidden
    You were denied access because:
    Access denied by access control list.
    I don't know if this is because someone at Apple has messed with the redirect script, or if this redirection mess with the URL has recently been added (and not yet debugged by Apple, apparently...) This has worked all semester until a student noticed it last night.
    By the way, the base URL http://www.myserver/filename.extension works fine
    (so if you go up to the address bar and edit out the redirect part, it works, i.e., it is not MY server that is giving the access error, but the ical.mac.com server...)

    I'm very glad to see that this isn't just my own personal dilemma. My Apple is down at the moment and as a result I'm forced to use my elderly parent's Dell. They have had my brother-in-law, who works with the LAN at Invesco Field (Denver), install umpteen internet security programs and I have been pulling my hair out trying to figure out how to turn the redirect function back on.
    I hope this is fixed in the near future.
    Justin
    iMac DV   Mac OS X (10.2.x)   My apple is broken so I'm using a Dell. =-(

  • Virtual host redirection

    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 [email protected]
    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 [email protected]
    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

    Hi,
    Thank you for posting in Windows Server Forum.
    From the listed error it seems that there is RD Virtualization Host process get failed and user authentication redirection can’t occur successfully.  Because it seems that there might be some configuration issue during your RDVH configuration. So if possible
    please check the whole configuration again and see whether it can resolve your issue.  You can refer beneath article for rechecking.
    Lab Ops 6 – Setup VDI in Windows Server 2012R2
    http://blogs.technet.com/b/andrew/archive/2013/10/14/lab-ops-6-setup-vdi-in-windows-server-2012r2.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Service type redirect with long url

    Hello,
    I need to configure a content rule on CSS11501 with redirect services. However, I need to redirect to url's like this:
    https://www.domain.com:4445/path1/path2/path3/path4/index.pl?username=USER&env=UAT&lang=ENG
    Then I found that the redirect url cannot be longer than 64-byte.
    How can I get this done? I cannot use the domain command or prepend-http command because I am redirecting to https. I think I must include the whole url including the "https://" part in the redirect string.
    Moreover, is there anything the CSS can help with the attribute-value pairs in the URL?
    CT Yau
    Hong Kong

    Here is a link to sample configs for the different ways to config redirect.
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_configuration_example09186a00801de8d6.shtml
    I think you need 'no prepend-http' and a redirect-string.
    However, I also believe the url size is limited to 256 characters.
    Give it a try so, as I'm not sure at 100% and have no devices to check right now.
    Regards,
    Gilles.

Maybe you are looking for

  • Countries of the World for BlackBerry 10

    App Name: Countries of the World  This App has achieved the Built for BlackBerry™ designation. This means that it has been through a rigorous approval process at BlackBerry and will deliver a quality BlackBerry® 10 experience. Summary: First time dev

  • Good (cheap) second monitor for 20"CD

    I am looking for a second (LCD) monitor for my 20" Core Duo. It doesn't need to be top of the line for video or photo editing or anything like that: I just want more real estate and want to take advantage of the Core Duo's ability to use extended des

  • What is the initial account and password  for Portal ?

    Hi all:      I installed BW and Portal . I want to do some configuration for Portal , but don't know what the initial account and password? could you please give me a hint ?

  • Flash CC 2014 Webgl!

    Hi, I was very excited to see webgl support but on inspection of the code exported an very upset. I can no longer write code in an external editor and target the movieclips from Flash. So what worked for the Canvas version does not work for the webgl

  • Problems installing an iFolder slave server

    Hi, I have an iFolder 3.8.4.0 master server configured and working with an AD server. I am now trying to add a second iFolder server as a slave in this iFolder domain. I'm running simias-server-setup and choosing "Y" when I get to the "Slave Server?"