Redirecting a domain URL to a file

Is there any SAF directive (e.g NameTrans) to redirect a domain URL (e.g http://www.xyz.com/rob.txt) to a file rob.txt sitting at location /x/y/rob.txt (other than root directory rob.txt).
Bascially I want to achieve any request coming to http://www.xyz.com/rob.txt redirected to /x/y/rob.txt so that I can use another rob.txt (not the one lying in root dir /) for this domain.

If you want different hosts to respond with different content, you'd normally create separate virtual servers. Each virtual server could have its own document root, so foo.example.com/rob.txt could map to a different file than bar.example.com/rob.txt.
If you really want to special case things for a given hostname and URI, you can do that. The following will redirect requests for /rob.txt to /x/y/rob.txt only if the hostname www.example.com was used in the request:<Client urlhost="www.example.com">
NameTrans fn="redirect" from="/rob.txt" url="/x/y/rob.txt"
</Client>

Similar Messages

  • Webdispatcher not redirecting for multiple url prefixes

    Hi Experts,
    Web Dispatcher configuration already in place.
    We are already using the URL's for NWBC through webdispatcher & masked the hostname & ports for Development/Quality systems in Development webdispatcher systems.
    Now currently we have created the Url with port for EP development systems as "https://abc.company.com:8200" & I have placed the relevant details in configuration profile but the re-direction is not happening and by default its taking the prefix ashttps://abc.company.com:8200/sap/bc/nwbc instead ofhttps://abc.company.com:8200/irj/portal .Also note if I replace the redirection rule & set as icm/HTTP/redirect_0= PREFIX=/, TO=/irj/portal redirection works but the rest of the multiplesystems which is Abap & using nwbc prefixes will not work.So to summarize , we want to use both the redirections for nwbc as well as portal in one webdispatcher.
    Rgd
    Asim

    Hi Tim,
    Unfortunately this is not possible; you can't associate multiple certificates to a single proxy list due to the fact that SSL handshake is done first with no visibility of the URL being requested, so the CSS won't know which public server to use in order to perform the traffic decryption.
    But there are a couple of options that you may want to look at (depending on the URL string)
    If your URLs are subdomains and you hold a wildcard SSL certficate to match multiple requests, i.e your domain being "pets.com" you can have a certficate that will match request for dogs.pets.com or cats.pets.com because the cert will be in the form *.pets.com
    The second option is SAN (Subject alternative names) certificates; which give you the option to include up to 4 flavors of the domain within the same file, such as pets.com, pets.net, www.1pets.com.
    I hope this helps.
    Pablo

  • When redirecting to site url jsessionid is appended and url becomes wrong

    hi,
    i have requirement when user clicks on link on b2c application then it should redirect to a site url.The problem when redirecting to site url is that jsessionid gets appended to site url and as a result url is not opened   due to wrong url generated as follows
    http://www.mahindralifespaces.com/SPLENDOUR/PROJECTMILESTONE.ASP;jsessionid=(mlkndcrmsdev_LCD_00)ID0618353650DB01149016834107209233End;saplb_*=(mlkndcrmsdev_LCD_00)7680550?a=b
    how to overcome this problem .did any one have idea
    Regards,
    Pavan

    i am directing forwarding to url using struts action forward using following code
    strUrl=mybom.getProjectStatusBO().getProjectStatusURL(userId);
    log.error("user url"strUrl"userId--"+userId);
    request.setAttribute("strUrl",strUrl);
    forward.setPath(strUrl);
    forward.setRedirect(true);
    return forward;
    following solved my problem
    i have chaged  web-j2ee-engine.xml file
    <cookie-config>
              <cookie>
                   <type>SESSION</type>
                   <path>APPLICATION</path>
                   <domain>NONE</domain>
              </cookie>
              <cookie>
                <type>APPLICATION</type>
                <path>APPLICATION</path>
                <domain>NONE</domain>
              </cookie>
    domain to none solved my problem
    Regards,
    Pavan

  • Firefox is not redirecting to given url it is in ideal stage

    firefox is not redirecting to given url it is in ideal stage

    You can check for problems with preferences and try to rename or delete the prefs.js file and possible numbered prefs-##.js files and a possible user.js file to reset all prefs to the default values.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can try to reset Firefox.
    *https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems
    If you reset Firefox then a new profile is created and some of your data (bookmarks, passwords, cookies, form data) is automatically imported and your current profile will be moved to the desktop (Old Firefox Data).
    You can recover more data from the old profile (be cautious with doing that).
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • My Albums pages display incorrectly from personal domain URL

    Pages on my iWeb website, created using the My Albums template, do not consistently display all the individual albums; one or more, or even all may be missing.
    If I use the web.mac.com URL, e.g. http://web.mac.com/wpinnington/Photos/Holidays/Holidays.html the gallery pages always load properly; the problem only occurs when I use my personal domain URL, e.g. http://www.williampinnington.com/Photos/Holidays/Holidays.html.
    I have discovered a work-around, which is to:
    1) Create a new My Album page;
    2) Move individual photo pages into the new My Album page;
    3) Save;
    4) Move the individual photo pages back to the original gallery page;
    5) Save; and
    6) Republish
    I'd like to know what the problem is though, so I can avoid this tedious chore. The problem occurs in both Firefox and Safari, so is not browser related. Firefox Error Console says "Error: uncaught exception: Permission denied to call method XMLHttpRequest.open." Safari also reports "Error: Permission denied http://www.williampinnington.com/Photos/Scripts/iWebSite.js (line 504)". Line 504 reads "req.open('GET',url,true);req.setRequestHeader('X-Requested-With','XMLHttpReque st');if(req.overrideMimeType)"
    Can anyone shed any light on the root-cause of the problem? I assume there is a problem with the error handling in the iWeb code which creates the iWebSite.js file.
    Kind regards,
    William
    P.S. I will leave the example URL broken for 48 hours before I fix it, so you can see for yourself.

    If I use the web.mac.com URL, e.g. http://web.mac.com/wpinnington/Photos/Holidays/Holidays.html the gallery pages always load properly; the problem only occurs when I use my personal domain URL, e.g. http://www.williampinnington.com/Photos/Holidays/Holidays.html.
    I'd like to know what the problem is though, so I can avoid this tedious chore. The problem occurs in both Firefox and Safari, so is not browser related. Firefox Error Console says "Error: uncaught exception: Permission denied to call method XMLHttpRequest.open." Safari also reports "Error: Permission denied http://www.williampinnington.com/Photos/Scripts/iWebSite.js (line 504)". Line 504 reads "req.open('GET',url,true);req.setRequestHeader('X-Requested-With','XMLHttpReque st');if(req.overrideMimeType)"
    Because of security issues, XMLHttpRequest is not allowed cross domain request, this is to avoid cross domain scripting.
    So as long as you mask your domain, XMLHttpRequest will fail.

  • How can I create a redirect to an URL like in SICF?

    Hi,
    we offer  the payroll (com.sap.pct.erp.ess.paycheck_service / sap.com/ess~rem/payslip2) in our portal which is a Java-WD. Whenever we import a modified version of the corresponding HRFORM into the P-system the application aborts with an error because the HRFORM has to be generated first after the import.
    I wanted to get rid of this problem by using the SICF where you can define a redirect to an URL (I wantet to switch to a "service is under construction"-WD). Unfortunately the SICF can only be used for WD4ABAP-services as I know - not for Java.
    Has anybody an idea how to solve my problem? I want to switch to a "service is under construction"-WD whenever there's an abort while processing the payroll application.
    We don't have any Java skill.
    Greetings,
    Steff

    You can place the html in component folder. src>mimes>Components. and can be accessed by code
    try {
    String url = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"<redirect>.html");
    } catch (WDURLException e) {
    wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
    1) you can use the url to navigate to the redirect page or can try exit plug.
    nikhil

  • Since passing to ML, I have a message, in French, which is: La connexion au serveur a échoué. Les URL de type "file" ne sont pas prises en charges.  Can you tell me what this means and how to get rid of it? thank you.

    What does this message mean?
    La connexion au serveur a échoué.  Les URL de type "file" ne sont pas prises en compte.
    thank you.

    Without more information, ie what were you trying to do when you got this message, it is very hard to answer your question. If you were trying to access a webpage it means the server the page is on had a problem. If you were doing something else please post back and someone may have the answer.

  • Database does not contain a URL for the file

    How do I find out what file/update this is:
    The file digest/hash does not exist in the SUSDB, but I have no idea looking at the windowsupdate or softwaredistribution.log what file it is referring to.
    SELECT  [FileDigest]
          ,[DigestAlgorithm]
          ,[AdditionalHash]
      FROM [SUSDB].[dbo].[tbFileHash] fh
      WHERE fh.FileDigest =0x15B82F101E79C1E2181E43CC8A3CC137CBFDC91D
      or fh.AdditionalHash =0x15B82F101E79C1E2181E43CC8A3CC137CBFDC91D
    0 rows found
    Softwaredistribution.log
    2014-10-07 23:07:04.319 UTC    Error    w3wp.5    ClientImplementation.GetExtendedUpdateInfo    System.ArgumentException: The database does not contain a URL for the file 15B82F101E79C1E2181E43CC8A3CC137CBFDC91D.
    Parameter name: fileDigests
       at Microsoft.UpdateServices.Internal.DataAccess.ExecuteSpGetFileLocations(Byte[][] fileDigests)
       at Microsoft.UpdateServices.Internal.DataAccessCache.GetFileLocations(Byte[][] fileDigests, DataAccess da)
       at Microsoft.UpdateServices.Internal.ClientImplementation.GetExtendedUpdateInfo(Cookie cookie, Int32[] revisionIds, XmlUpdateFragmentType[] fragmentTypes, String[] locales)
       at Microsoft.UpdateServices.Internal.ClientImplementation.GetExtendedUpdateInfo(Cookie cookie, Int32[] revisionIds, XmlUpdateFragmentType[] fragmentTypes, String[] locales)
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at System.Web.Services.Protocols.WebServiceHandler.Invoke()
       at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
       at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
       at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

    How do I find out what file/update this is:
    Hows about.. rather than chasing a rabbit down the hole doing whatever you think you're doing...
    We start with this: What problem is it that you're actually trying to solve?
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • TS2756 I'm trying to connect my ipad2 to my phones wifi hotspot. my phone says hotspot is activated and it shows up as an option on my ipad but when i hit that on the ipad it shows a page with a list of things like ip address, domain, url. what do i do no

    I'm trying to connect my ipad2 to my phones wifi hotspot. my phone says hotspot is activated and it shows up as an option on my ipad but when i hit that on the ipad it shows a page with a list of things like ip address, domain, url. what do i do now?

    iOS: Understanding Personal Hotspot
    http://support.apple.com/kb/HT4517
    Use Bluetooth to tether your iPhone, iPod touch, or iPad
    http://www.macworld.com/article/1159258/bluetooth_tethering.html
    How to Connect an iPad to an iPhone Via Bluetooth Tethering
    http://techtips.salon.com/connect-ipad-iphone-via-bluetooth-tethering-25472.html
     Cheers, Tom

  • Need to invoke a process from a column link and then redirect to a url

    Is it possible to invoke a process from a column link then redirect to a url
    I want to invoke a process that has a pl sql block of code which will do some table inserts and then redirect the user to an external url.
    Any help would be appreciated.

    Howdy Scott,
    I thought this might help me but I've got a dynamic form with apex_application.g_f01(i) items on it ie tabular form. How can I take the value of these arrays with me to the temporary page with the onload process?
    Thanks
    Gary

  • I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    I can not download any files using Safari ? when I choose to download application file the URL include the file name and stop responding. Any help??

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. The Guest login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • No redirection to different url upon http connections limit exceeded

    Hi,
    As of Standalone OC4j 10.1.2, if you want messages to be redirected to a different URL when the maximum connections limit is reached, you would include the HTTP redirect URL to max-http-connections tag inside server.xml.
    <max-http-connections max-connections-queue-timeout="120" socket-backlog="50"
    value="100">http://optional.redirect.url/page.jsp</max-http-connections>
    I have a standalone OC4j 10.1.3, and would like to be able to redirect to different URL when maximum connections limit is reached but the above max-http-connections does not work and I am not redirected to different URL when maximum connectionns limit is reached. I read user guide of OC4j 10.1.3 and there is no mentioning of max-http-connections at all. In there, they talk about limiting concurrency via http thread pool but there is no discussion as to the mechanism of redirecting users to a different URL where I can display a user friendly message to say "Server is busy, please try again later..." instead of browser display a message "Page cannot be displayed"..
    Please advice,
    Thanks

    Any thoughts on above issue ? please help.
    thanks
    Sam

  • The value should be set for Base image URL and Image file directory

    Hi experts
    Now customer has the following issue.
    XML Publisher concurrent request, using RTF layout template with LOGO, does not generate the LOGO for Excel output.
    but in output formats PDF, it is shown normally.
    from the debug log, we can found the following error message
    ======
    [051812_054716051][][ERROR] Could not create an image. Set html-image-dir and html-image-base-uri correctly.
    ======
    so I tell the customer to do the following action plan.
    1. in XML Publisher Administrator resp > Administration expand the HTML Output section.
    2a. enter a value for 'Base image URI'
    2b. enter a value for 'Image file directory'
    Customer set the value as following and retest this issue,but he found the issue is not solved.
    Base image URI: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media/XXSLI_SONY_LIFE_LOGO.gif
    Image file directory: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media
    I verified 'Base image URI' and 'Image file directory' settings:
    1) Change output type to HTML.
    2) Click the Preview.
    but the image is correctly displayed on HTML, so I think the issue is caused by user's uncorrectly setting of the base image URL and/or image file directory
    but could anyone give me some advice on which value should be set for Base image URL and Image file directory
    Regards
    shuangfei

    First thing to do is to edit the post and use some tags to format the code as it is unreadable and too much!
    Read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to do this.
    Next we need to know the jdev version you are using!
    As the code is generated I would first try to generate it again after the db change.
    Timo

  • TA44469 Quicktime on my Mac runs a URL dot mov file.  On My WINXP Quicktime Pro will not.  Anyone know what's wrong.

    Quicktime on my Mac runs a URL dot mov file.  On My WINXP Quicktime Pro will not.  Anyone know what's wrong.

    I just experienced this exact same issue with my early 2011 15" macbook pro. Since like a month after purchasing it I had issues with the screen randomly going dark on me. I sent it in for repair inder waranty they replaced the gpu and logic board but I continued to have the same issues with the screen randomly going black sometimes I would need to reboot it in order to get the screen to go back on but it happened so infrequently and I used the computer for school so disnt find the time to resend it in to apple. Just last night the screen started to display the blue screen with black verticle lines on it. I called apple and explained to them  the issues that had been ongoing since I purchased the laptop but they said because I was now outside of warantee that any repairs at thia point wouldn't be covered. Fml so glad I spent 2200 on this future proof macbook pro what a joke my sister purchased a toshiba laptop for 300 4 years ago and it still running like a champ. I loved my macbook but at the price I paid I expect it to last longer than 2 years before leaving me high and dry. *** apple??

  • Redirecting java compilation errors to a file

    Hi,
    How do I redirect java compilation errors to a file while using a dos environment ? Help needed asap.
    Gayathri

    javac FileName.java 2> errorFileName

Maybe you are looking for

  • Trying to Install OS 10.4 - Can someone help?

    I am trying to install a black DVD Mac OS X Tiger Version 10.4 that I received as a gift (person got tired of hearing me complaining about not able to used TurboTax with my present OS) on my 400 MHz PowerPC G4 (AGP graphics) that presently has Versio

  • Excise Posting problem?

    Hi, I am trrying to post the Excise Invoice thorugh J1IEX but when I am doing so two problems: 1) G/L account for SECess is not picking up by the system and hence the Debit amount is short and unable to post the Excise invoice. 2) System is showing m

  • 3G iPhone saying I need a restore

    I have had my phone for a couple of months now. This morning I woke up and the display showed I needed to connect to iTunes. I did so. When I plug my phone in it said my phone needed to be restored before I could use iTunes...... Okay, I dont have mu

  • HT204088 How to cancel a renewable contract?

    I am trying to cancel a renewable subscription to a magazine app on my iPhone? Any help would be appreciated.

  • /dev/??? - what does that mean?

    Hello, What does /dev/??? mean? I have received a strange message: su: 'su user1' succeeded for user2 on /dev/??? What does that thing mean? Regards, Przemek