Need help with URL Redirect in Sun Web Server 7 u5

All I am trying to do is redirect to a static URL and for the life of me I can not get it to behave the way I would expect. I am new to Sun Web Server so I am just trying to use the Admin Console to set this up.
Here is what I'm trying to do:
Redirect from - http://www.oldsite.com/store/store.html?store_id=2154
To - http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
Here's what I tried in the console.
Added a new URL Redirect
Set the Source to be Condition and set it to: '^/store_id=2154$' (quotes included)
Then set the Target to: http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
Then for the URL Type I checked Fixed URL
When I tested with: http://www.oldsite.com/store/store.html?store_id=2154 it did redirect as desired
BUT
When I tested with: "http://www.oldsite.com/store/store.html?store_id=5555" it too got redirected to the Target and I can't figure out how this second URL can satisfy the condition to get redirected.
Any help is most appreciated.

thanks for choosing sun web server 7
it is simpler if you just edit the configuration files manually
cd <ws7-install-root>/https-<hostname>/config/
edit obj.conf or <hostname>-obj.conf (if there is one for you depending on your configuration so that it look something like)
<Object name="default">
AuthTrans..
#add the folllowing line here
<If defined $query>
<If $urlhost =~ "/oldsite.com" and
$uri =~ "/store/store.html" and
$query =~ "store_id=2154" >
NameTrans fn="redirect" from="/" http://www.newsite.com/Stores/StoreFront.aspx?StoreId=2154
</If>
</If>
..rest of the existing obj.conf. continues
NameTrans...
now, you can either do <ws7-install-root>/https-<hostname>/bin/reconfig -> to reload your configuration without any server downtime or <ws7-install-root>/https-<hostname>/bin/restart -> to restart the server
if it did work out for your, you will need to run the following so that admin server is aware of what you just did
<ws7-install-root>/bin/wadm pull-config user=admin config=<hostname> <hostname.domainname>
hope this helps

Similar Messages

  • How to do auto URL redirect in sun web server ?

    Hi, i need to do auto url redirect in my sun web server. Currently i'm setup some rules for the reverse proxy in obj.conf file and the syntax looks like:
    <Object name="reverse-proxy-/test">
    <If $internal and $uri =~ "index.html">
    NameTrans fn="redirect" from="/" uri="/examples/abc.html"
    </If>
    Route fn="set-origin-server" server="http://localhost:8989"
    </Object>
    The situation is:
    1) When users browse "*http://localhost/examples/abc.html*" it will redirect to abc.html
    2) When users browse "*http://localhost/test*" it will redirect to the localhost admin GUI (http://localhost:8989/admingui/admingui/serverTaskGeneral)
    My desire output should be whenever users browse the "*http://localhost/test*" , it will redirect to abc.html page.
    the syntax might be wrong. So, anyone knows how to fix this? I'm keep trying but nothing worked. Please help me.

    Moderator action: Moved from Servers General Discussion.
    db

  • I need help with setting up my Sun Java Studio Creator

    Hello all, i need help with setting up the Studio Creator, i"m new to all that staff so is there anyone to help me just a little with all that if yes email me at [email protected] or get me on AOL Instant Messanger with the screen name: wretch17
    thanks :-)

    Hi,
    Welcome to the Creator community! Thanks for your interst in Sun Java Studio Creator. Please feel free to post any question related to creator on this forum .
    Take a look the creator website at
    http://developers.sun.com/prodtech/javatools/jscreator/
    CreatorTeam

  • Need help with Outlook 2013 connecting to Exchange server(2010)

    Hi
    I need help with Outlook 2013 and with my exchange server(2010) email account
    After setting up account initially emails come in and than after an hour or two stop. My OWA is working fine with no issues. I have even created a forward rule in OWA to my GMAIL account whch works fine
    However Outlook 2013 is not syncing messages, have difficulty in sending emails sometimes as it takes too long.  In fact the connection also is intermittent. Even if the task bar shows connected to exchange, it seems that is not the case since new emails
    and any emails I compose dont work.  I have trouble shot the issue with my ISP and email service provide, but they havent resolved the issue  I have also done a TraceRoute and that shows no drops or problems to he exchange server.
    Can someone please help me resolve this matter so I can continue to use Outlook 2013( running Windows 8.1) in both my computers which have the identical problem
    Look forward to a solution soon
    Thanks

    Hi Angela
    Thanks for your message
    To answer your questions, please note the following
    a) My account is set up in Cache Mode( not online mode)
    b) I am the only other user on the account
    c) When the connection to the exchange server is broken, I see upon clicking connection tab that there is no information in the box, and when I press reconnect it starts showing "connecting"
    d) When the connection to the server is there, it shows  connection as "established"
    e) Sorry I dont understand th meaning of CAS array in your environment?  Can you pls explain
    Since yday I have been using Outlook 2010 on desktop and Outlook 2013 on my laptop using Exchange 2013 account.  So far all emails are syncing, and I can send emails from both computers. However, I am concerned that the connection can break-off anytime,
    as it has done that in the past on both outlook versions.  The max time it has worked without any problem is 48 hrs and than after that the same issue of not connection, not syncing and unable to send emails happens
    My ISP has checked and there is no network connectivity issues. My email service provider has trouble shot the issue many times, but to no positive results.  I have also changed the profile a few times, but the intermittent connectivity problem hasn't
    been resolved.
    Can you identify the possible causes and more importantly a working permanent solution please
    Thanks
    Mahesh

  • I need help with the processes running a media server.

    Hi there!   I need some help with the following log please.  The processes listed I am assuming are the current processes being used from my MacBook Pro to the media server?  Is that correct?  Are these common processes?
    Incident Identifier: EC931B64-E141-4C64-B428-427DF014C7E8
    CrashReporter Key:   b16be41bf16206d8f231e7e71676ab2a9c4dd25e
    Hardware Model:      iPhone4,1
    OS Version:          iPhone OS 5.0.1 (9A405)
    Kernel Version:      Darwin Kernel Version 11.0.0: Tue Nov  1 20:34:16 PDT 2011; root:xnu-1878.4.46~1/RELEASE_ARM_S5L8940X
    Date:                2012-08-24 16:06:18 -0400
    Time since snapshot: 152 ms
    Free pages:        1195
    Wired pages:       88383
    Purgeable pages:   0
    Largest process:   mediaserverd
    Processes
             Name                 UUID                    Count resident pages
                 atc <2271ed33ec773eeb9f381bf1baac9dee>     390
           securityd <e31a714c227a3d1c98ef8aacd44d91ee>     243
             assetsd <281396d3e7d831fbb6a5374157663dbc>    1370
          MobileMail <7064f2baf3f23db987bc8ec99855fe53>    1438 (jettisoned)
            mstreamd <cbe9881735043a389e7cdad3b5bcf5ce>    1099 (jettisoned)
              Camera <88291709452932ac9cbd0f1c06902214>    3105 (active)
         dataaccessd <b4f61f117ee635c48329af8572733d30>    1760
         MobilePhone <fe38c6944a053c9187b41ee50aa151b0>    5549
            networkd <6ee7a78e56073f6e8db4c2cc3265fdb4>     170
          aosnotifyd <58089d732ab43bbea0aec4a6f812f446>     320
            BTServer <e03baab8e0103188979ce54b87591065>     261
          aggregated <68a25a1690cb372096543a46abed14d7>     337
                apsd <e4b6e6e4f31e36f79815747ecbf52907>     291
       fairplayd.N94 <2c0105776e393b39ba95edffaf3bdd17>     294
           fseventsd <78af02202422321885dfc85c24534b0e>     170
                iapd <3ee7f82879033b4fb93b9cf1f4ecae29>     366
             imagent <8e2042f2ec9e3af9ba400f031f1bbfa7>     416
       mDNSResponder <b75f43f012ad3d9ea172d37491994e22>     265
        mediaremoted <b9fa7d1381013c2fa90ea134ff905f59>     258
        mediaserverd <478e5e8345c83be5ba1868906813bb75>    6774
                 ubd <7eaf0b0ca5b83afabecb0dfaa38c7a19>     389
               wifid <e176ab123beb3000bdb89e020612c1d6>     284
           locationd <91c84ab19dd03e4ab1b4cc30178ab1c0>     831
              powerd <25ddef6b52e4385b819e777dd2eeed3c>     167
           lockdownd <a68aa1526ef13a9bb4426bb71ffc1e3c>     250
          CommCenter <51922c9a50e73fe3badccaa4b1b1123b>     781
             syslogd <dd3766bcb1213e91b66283635db09773>     107
         SpringBoard <7506c20d86da3f1dbe9bf38f8bda253d>    5673 (active)
             configd <3430c0025ed13f56800a329b7254d2ae>     418
             notifyd <3793fabace3a385687b3c29c1fa1fcac>     252
      UserEventAgent <6e1cabc1ec6d372c90a6bdeaa7b258fa>     433
             launchd <cc35dd7a872334319ed028e6bbeae081>     133
    **End**
    Thanks a bunch!!!

    COULD NOT OF BEEN BOUGHT BRANDNEW IN 2011** apologies

  • Need help with URLs (Mamp/Dreamweaver/Apple Lion)

    I'm in the midst of a major upgrade - Apple Leopard > Lion and MAMP 1.x to 2.0.5. I also installed CS3, with Dreamweaver, on my new laptop.
    Anyway, everything seems to be falling in place, except for one major snag - I can't view my web pages in a browser.
    On my old laptop, I have it set up so that I can view each of my websites at a simple URL, like this: http://SL. My sites are stored in a top level folder named Sites.
    I used the settings in my old computer as a guide in setting up a site in Dreamweaver and MAMP/Hosts on my new laptop, but I can't view a page at http://SL. http://localhost/SL and http://localhost don't work, either, whereas http://localhost:8888 prompts a "Forbidden" message.
    However, I can access phpMyAdmin at http://localhost:8888/phpMyAdmin/?lang=en-iso-8859-1&language=English
    When I was setting up the site in Dreamweaver, I got the following error message:
    "Dreamweaver cannot use the prefix you entered to displaly live data. Please double-check your site configuration or click on Help for more information on how to correct this problem. (HTTP Error: 0)." I didn't explore the Help menu immediately, and I can't recreate the error message now.
    I read somewhere that I should put my html folders in the htdocs folder so I tried that with one site, with the same result.
    Anyway, can anyone tell me what I have to do to make a website located at Users > (Me) > Sites > SL display at http://SL?
    Thanks.

    In MAMP Pro setup ports for Apache/MySQL to 80/3306 then setup virtual host in Hosts tab. MAMP doesn't allow extending virtual hosts, only MAMP Pro does that. Are you using MAMP or MAMP Pro?
    best,
    Shocker

  • Need help with sed to fix migrated web site links (part II)

    I thought I had this fixed, but I didn't, so starting over:
    I'm moving my web files from one host to another, and have backed up my directory called WEB into my user downloads folder.  The site is dead simple, mostly links within the site, pages primarily text with some links to my photos posted on flickr, and a few outside links.  I want to avoid opening/replacing/saving a hundred or more files to fix the links from "http://www.old_domain_name/user/my_username" to "http://my_new_domain_name"
    A friend suggested the following scripts to do this
      mkdir fix_urls
      cd fix_urls
      cp -r <wherever>/WEB .
      cd WEB
      xargs -0 egrep -i  old_domain_name $(find * -name "*.html" -print0) > ../to_fix
      cd ..
      less to_fix
    to see what needs changing, but after I've created and moved to WEB, the xargs command results in a zero kb file called to_fix appearing in WEB, and nothing else happens....and the prompt in terminal (myusername$) doesn't reappear.
    I tried his part II anyway:
      mkdir new_web
      while read filename; do
          sed 's/\/www.old_domain_name/user/my_username/\/my_new_domain_name/' < WEB/$filename > new_web/$filename
      done
      diff -r WEB new_web > what_i_did
      less what_i_did
    and after the 'done', I get again....nothing.  No new cursor gray rectangle, no new prompt, haven't even gotten to the last bit of diff to review the changes.
    Any tips on what fundamental bone-headed thing I'm doing wrong?
    and I got this helpful answer which seemed to have solved it, but didn't entirely:
    This solved my question by X423424X  on Jul 1, 2012 1:23 AM
    I want to avoid opening/replacing/saving a hundred or more files to fix the links from "http://www.old_domain_name/user/my_username" to "http://my_new_domain_name"
    If that's all you want to do then here's the pertinent sed command to do it:
    sed -e 's,www.old_domain_name/user/my_username,my_new_domain_name,'
    Syntax is a bit simpler when you don't use slashes as the sed substitute delimiters.  You can use anything.  Here I used commas.
    I got excited too quickly after the first file I clicked looked correct--the first file in the subdirectory.
    I see no indication in terminal that the process is going or ending--no sense of when I can close terminal and move on.
    Checking the directory in finder shows no updates to 'date modified' for any of the files.
    So how do I know if it is in progress, or done working, aside from opening random files to see if they're 'done'?
    I've got three subfolders inside one folder (my WEB folder), and it looks like only the first file of the first subdirectory got repaired.

    Here is a bash script to interate through all files in a folder of a given extension.
    #!/bin/bash
    # be sure to use Unix lineends -- linefeed \n
    # Use TextWrangle for editing.  It's free.
    # http://www.barebones.com/products/TextWrangler/
    # or nano in the terminal
    # to make this file -- listFile.bash runable do:
    # chmod u+x listFile.bash
    # debug info
    export PS4='+(${BASH_SOURCE}:${LINENO}):'
    # remove the leading # in the line below to show debug info
    # set -o xtrace
    # first comes the directory/folder you want to search
    # -name do a case independent search for all file ending
    #       with the extension .txt
    find /Users/mac/Desktop/iMac -iname "*.txt" | while read file
    do
        echo
        echo "file to process is = " $file
        # replace the list command with your command.
        # You will need to place a $ in front of file
        # To avoid problems with blanks & other characters,
        # put " around $file, your variable.
        ls -l "$file"
    done
    mac $ chmod u+x /Users/mac/Desktop/listFiles.bash
    mac $ /Users/mac/Desktop/listFiles.bash
    file to process is =  /Users/mac/Desktop/iMac/bash/pdisk-l.txt
    -rw-r--r--   1 mac  staff  20915 Feb  4  2009 /Users/mac/Desktop/iMac/bash/pdisk-l.txt
    file to process is =  /Users/mac/Desktop/iMac/comments on new forum software.txt
    -rw-r--r--   1 mac  staff  1966 May 26  2011 /Users/mac/Desktop/iMac/comments on new forum software.txt
    file to process is =  /Users/mac/Desktop/iMac/hidden mac os files.txt
    -rw-r--r--   1 mac  staff  1499 Jul  1 17:01 /Users/mac/Desktop/iMac/hidden mac os files.txt
    file to process is =  /Users/mac/Desktop/iMac/key combinations.txt
    -rw-r--r--   1 mac  staff  2547 Aug 24  2011 /Users/mac/Desktop/iMac/key combinations.txt
    file to process is =  /Users/mac/Desktop/iMac/nvram -p.txt
    -rw-r--r--   1 mac  staff  1248 Feb  1  2011 /Users/mac/Desktop/iMac/nvram -p.txt
    file to process is =  /Users/mac/Desktop/iMac/reset mac Open Firmware.txt
    -rw-r--r--   1 mac  staff  7876 Jun 25 21:56 /Users/mac/Desktop/iMac/reset mac Open Firmware.txt
    mac $

  • Need help with url for mx:HTTPService

    I inherited a Flex project and I do not have much experience with Flex.
    I have a mxml file with a HTTPService defined where the url is defined as such
    <mx:HTTPService id="domainFetcher" contentType="application/xml" resultFormat="e4x"
            url="{XXX.xxxPrefix}queries.php" method="POST" result="domainResultHandler(event)">
            <mx:request xmlns=""><ListDomainTree/></mx:request>
        </mx:HTTPService>
    I cannot determine how {XXX.xxxPrefix} is defined. When I make changes on the target web location I do not see the changes. If I remove the {XXX.xxxPrefix} then I do.
    So, it looks like {XXX.xxxPrefix} is pointing to another location that I cannot determine.
    I hope someone can help me with how to find out how the value of {XXX.xxxPrefix} is getting set.
    Thanks

    Use network monitor(it is a feature in Flash builder) to determine the url, also, XXX.xxPrefix? is it a property of the class where this httpservice is defined? I still do not understand what you mean by the following line.. Use debugger to find out whats in the prefix thing. Still your question does not have clarity, may be you should post more code.
    I inherited a Flex project and I do not have much experience with Flex.

  • I need help with exporting project for the web

    Probably something i am doing wron g but here are the problems. When I use Quicktime Converter, if I try to convert to a Quicktime movie or an MPEG-4 nothing happens and i get a 'File error;File Unknown message' when i try to convert to an AVI File, it works, but even though I have already rendered the project, it shows up with little flashes of blue that say 'unrendered'. and finally, when I try to make it a w
    Windows Media File, it stops after 29 seconds. Any ideas?
    I have an iMac with dual core processor, and FCE HD 3.5.1. I have my video files on an external drive.
    iMac   Mac OS X (10.4.10)  

    perform a search using the term export for web and it should throw up some ideas.
    here's one for starters:
    http://discussions.apple.com/thread.jspa?messageID=2309121&#2309121
    If you're using flip4mac to convert to wmv, the trial stops at 30 seconds - you need at least wmvstudio to export to wmv:
    http://www.flip4mac.com/wmv.htm

  • Need help with setting up a photolibrary on server that can be accessed/edited by multiple users

    Hi:
    I would like to develop an in-house photolibrary for our graphics department. The goal is to be able to add keywords to all our images so that we could have a more dynamic means of searching through our countless scanned images. Lightroom works great with regards to keywording and searching.
    To make it so all the computers in our office could have access to the images, I created a photolibrary on our server that can be accessed by any of the computers in our graphics dept. However, when one computer adds keywords to an image, that info does not show up on any of the other computers. Perhaps this is an issue with the trial version and we need to get the license? A few other people suggested that it might have something to do with my export settings - I tried to play around with the settings but had little luck...Any Advise?
    Thanks,
    Leo

    Thanks for your thorough reply. Is there a way to have one MASTER computer that could create the keywords and have the other computers access the master computer's catlogues - or something of that sort. We are small graphics dept. with three people so even that would suffice.
    Lightroom is not a networked application, and cannot be set up so that multiple computers can access LR via a network.
    The only real workaround with LR is to put the catalog and photos on an external HD and then physically connect the external HD to the computer of the person wanting to use it. So only one person can use the catalog at one time.
    You can look up Digital Asset Management (DAM) software on Google if you really need to have multi-user access and networked.

  • Need Help with 2 Player Applet Game w Server

    Hi , I am quite rush for a game project which is about batt|e ship .
    The game judge is the ServerModel
    Firstly
    1) Player 1 , Player 2 press connect to establish connection.
    2) Connection sucessful prompt for choosing of coordinate
    3) Player 1 select a Map coor via mouse click and so do player 2
    4) Game will start once both choosed the coor
    5) The Game will run till Winner is determine
    => Winner is determine by <=
    Player 1's Turn select a Map Coor and it HITS player 2 Ship spot = win.
    viceversa for player 2.
    => My program problem , it is in version e, i been fixing it but cant find a way to fix my game to LOOP till Winner is determine.
    The program will stop displaying MyTurn on the JLabel status and mouse event seem no longer work after ROUND 1 pass , which is player 1 click on player 2 and player 2 click back on player 1.
    can help me check my code?
    Special Jar used is
    ClientModel.jar =>
    method of readFromServer ( Return String)
    and
    sendToServer(Java.Lang.String)

    baoky, you've been told before to use code tags when posting code:
    http://forum.java.sun.com/thread.jspa?threadID=5197453&messageID=9780961#9780961
    If you continue to refuse to do so, I (and many others here) will refuse to look at your code. Did you even bother to read responses in your previous thread??

  • Need help with network user accounts on Mac server App on Yosemite, any tips?

    I've been trying to set up a small network with the Server app on Yosemite. I don't want to do anything crazy with the server, I'd just like to know how I can set up network user accounts so that they can login from other Mac computers on the same network. I already have Open directory set up, the Macs that will be used on the network with the server have already been joined to the server under login options. I have created the network user account, I have also joined the user account to a group that I created. When I try to login to the network account from one of the Macs, it doesn't work. I'm pretty rookie with Mac server, can anyway give me any pointers of what I should be doing? Or if I am doing something wrong. Thanks guys.

    The most important step, once you've got Open Directory and DNS set up, with Local Network Users set up in Server.app, is to make sure that all client Macs are using the server's IP address as the primary DNS server in System Preferences > Network, and that they have joined the Network server in System Preferences > Users and Groups > Login Options.
    Having said all that, I have just spent hours setting this all up only to find out that Mail doesn't currently work with Network Homes in 10.10.3 / Server.app 4.1.
    I will be hoping that Apple recognise the bug, and put out a fix soon.

  • I need help with the Web Application Certificate

    Greets,
    The title says it all really. I need help with the Web Application Certificate.
    I've followed the instructions from here:
    https://www.novell.com/documentation....html#b13qz9rn
    I can get as far as item 3.c
    3. Getting Your Certificate Officially Signed
    C. Select the self-signed certificate, then click File > Certification Request > Import CA Reply.
    I can get the certificate in to the Filr appliance but from there I'm stuck.
    Any help much appreciated.

    Originally Posted by bentinker
    Greets,
    The title says it all really. I need help with the Web Application Certificate.
    I've followed the instructions from here:
    https://www.novell.com/documentation....html#b13qz9rn
    I can get as far as item 3.c
    ok when you have you self signed certificate and you requested an official certificate with the corresponding CSR then you just need to go back to the digital certificates console. To import the official certificate, select the self signed certificate, then click File > Certification Request > Import CA Reply. Then a new windows pops out to select the certificate from your trusted authority from your local hard disk. Find the file (.cer worked for me) and click ok. As soon as you do this in the digital certificates console the self signed certificate will change the information that now it is officially signed. Look at the second column and you should see the name of your trusted authority under "issue from"
    I personally had a lot of issues across all platforms. Especially Firefox and Chrome for android. Needed to pack all the root cert, intermediate cert and signed cert into one file and import as CA reply. Not even sure if this is correct now. But at least it works.

  • Need Help with a Flash Web Project

    Hello, everyone. I am trying to use Flash to make a two-step
    system. I want the flash document to, first, allow a person to
    upload multiple image files and then, second, for the flash
    document be able to create a slideshow with the uploaded images and
    fade in and out from each image until the slideshow is over. I want
    it to be where the flash document creates its own slideshow with
    the images that are uploaded in the first step that I mentioned. I
    want it to do it completely on its own so I need to know how to
    give it the proper AI so that it can do this task.
    So, are there any tips that anyone has on how to do this? Can
    anyone tell me exactly how to do this? I really need help with this
    for my new website project. Thanks in advance, everyone!

    The problem with the text not appearing at all has to do with you setting the alpha of the movieclip to 0%.  Not within the movieclip, but the movieclip itself.  The same for the xray graphic, except you have that as a graphic symbol rather than a movieclip.  To have that play while inhabiting one frame you'll need to change it to a movieclip symbol.
    To get the text to play after the blinds (just a minor critique, I'd speed up the blinds), you will want to add some code in the frame where you added the stop in the blinds animation.  You will also need to assign instance names for the text movieclips in the properties panel, as well as place a stop(); in their first frames (inside).
    Let's say you name them upperText and lowerText.  Then the code you'd add at the end of the blinds animation (in the stop frame) would be...
    _parent.upperText.play();
    _parent.lowerText.play();
    The "_parent" portion of that is used to target the timeline that is containing the item making the command, basically meaning it's the guy inside the blinds telling the guy outside the blinds to do something.
    You'll probably want to add stops to the ends of the text animations as well.
    If you want to have the first text trigger the second text, then you'd take that second line above and place it in the last frame of the first text animation instead of the blinds animation.
    Note, on occasion, undeterminably, that code above doesn't work for some odd reason... the animation plays to the next frame and stops... so if you run into that, just put a play(); in the second frame to help push it along.
    PS GotoandPlay would actually be gotoAndPlay, and for the code above you could substitute play(); with gotoAndPlay(2);

  • How do I use Sun Web Server 7.0u1 reverse proxy to change public URLs?

    Some of our installations use the Sun Web Server 7.0 (update 1, usually)
    for hosting some of the public resource and reverse-proxying other parts
    of the URI namespace from other backend servers (content, application
    and other types of servers).
    So far every type of backend server served a unique part of the namespace
    and there was no collision of names, and the backend resources were
    published in a one-to-one manner. That is, a backend resource like, say,
    http://appserver:8080/content/page.html would be published in the internet
    as http://www.publicsite.com/content/page.html
    I was recently asked to research whether we can rename some parts of
    the public URI namespace, to publish some or all resources as, say,
    http://www.publicsite.com/data/page.html while using the same backend
    resources.
    Another quest, possibly related in solution, was to make a tidy url for the
    first page the user opens of the site. That is, in the current solution when
    a visitor types the url "www.publicsite.com" in his or her browser, our web
    server returns an HTTP-302 redirect to the actual first page URL, so the
    browser sends a second request (and changes the URL in its location bar).
    One customer said that it is not "tidy". They don't want the URL to change
    right upon first rendering the page. They want the root page to be rendered
    instantly i the first HTTP request.
    So far I found that I can't solve these problems. I believe these problems
    share a solution because it relies on ability to control the actual URI strings
    requested by Sun Web Server from backend servers.
    Some details follow, now:
    It seems that the reverse proxy (Service fn="service-passthrough") takes
    only the $uri value which was originally requested by the browser. I didn't
    yet manage to override this value while processing a request, not even if
    I "restart" a request. Turning the error log up to "finest" I see that even
    when making the "service-passthrough" operation, the Sun Web Server
    still remembers that the request was for "/test" (in my test case below);
    it does indeed ask the backend server for an URI "/test" and that fails.
    [04/Mar/2009:21:45:34] finest (25095) www.publicsite.com: for host xx.xx.xx.83
    trying to GET /content/MainPage.html while trying to GET /test, func_exec reports:
    fn="service-passthrough" rewrite-host="true" rewrite-location="true"
    servers="http://10.16.2.127:8080" Directive="Service" DaemonPool="2b1348"
    returned 0 (REQ_PROCEED)My obj.conf file currently has simple clauses like this:
    # this causes /content/* to be taken from another (backend) server
    NameTrans fn="assign-name" from="/content" name="content-test" nostat="/content"
    # this causes requests to site root to be HTTP-redirected to a certain page URI
    <If $uri =~ '^/$'>
        NameTrans fn="redirect"
            url="http://www.publicsite.com/content/MainPage.html"
    </If>
    <Object name="content-test">
    ### This maps http://public/content/* to http://10.16.2.127:8080/content/*
    ### Somehow the desired solution should instead map http://public/data/* to http://10.16.2.127:8080/content/*
        Service fn="service-passthrough" rewrite-host="true" rewrite-location="true" servers="http://10.16.2.127:8080"
        Service fn="set-variable" set-srvhdrs="host=www.publicsite.com:80"
    </Object>
    I have also tried "restart"ing the request like this:
        NameTrans fn="restart" uri="/data"or desperately trying to set the new request uri like this:
        Service fn="set-variable"  uri="/magnoliaPublic/Main.html"Thanks for any ideas (including a statement whether this can be done at all
    in some version of Sun Web Server 7.0 or its opensourced siblings) ;)
    //Jim

    Some of our installations use the Sun Web Server 7.0 (update 1, usually)please plan on installing the latest service pack - 7.0 Update 4. these updates addresses potentially critical bug fixes.
    I was recently asked to research whether we can rename some parts of
    the public URI namespace, to publish some or all resources as, say,
    http://www.publicsite.com/data/page.html while using the same backend
    resources.> now, if all the resources are under say /data, then how will you know which pages need to be sent to which back end resources. i guess, you probably meant to check for /data/page.html should go to <back-end>/content/page.html
    yes, you could do something like
    - edit your corresponding obj.conf (<hostname>-obj.conf or obj.conf depending on your configuration)
    <Object name=¨default¨>
    <If $uri = ¨/page/¨>
    #move this nametrans SAF (for map directive - which is for reverse proxy within <if> clause)
    NameTrans.. fn=map
    </If
    </Object>
    and you could do https-<hostname>/bin/reconfig (dynamic reconfiguration) to check out if this is what you wanted. also, you might want to move config/server.xml <log-level> to finest and do your configuration . this way, you would get enough information on what is going on within your server logs.
    finally,when you are satisfied, you might have to run the following command to make your manual change into admin config repository.
    <install-root>/bin/wadm pull-config user=admin config=<hostname> <hostname>
    <install-root>/bin/wadm deploy-config --user=admin <hostname>
    you might want to check out this for more info on how you could use <if> else condition to handle your requirement.
    http://docs.sun.com/app/docs/doc/820-6599/gdaer?a=view
    finally, you might want to refer to this doc - which explains on ws7 request processing overview. this should provide you with some pointers as to what these different directives mean
    http://docs.sun.com/app/docs/doc/820-6599/gbysz?a=view
    >
    One customer said that it is not "tidy". They don't want the URL to change
    right upon first rendering the page. They want the root page to be rendered
    instantly i the first HTTP request.
    please check out the rewrite / restart SAF. this should help you.
    http://docs.sun.com/app/docs/doc/820-6599/gdada?a=view
    pl. understand that - like with more web servers - ordering of directives is very important within obj.conf. so, you might want to make sure that you verify the obj.conf directive ordering is what you want it to do..
    It seems that the reverse proxy (Service fn="service-passthrough") takes
    only the $uri value which was originally requested by the browser. I didn't
    yet manage to override this value while processing a request, not even if
    I "restart" a request. Turning the error log up to "finest" I see that even
    when making the "service-passthrough" operation, the Sun Web Server
    still remembers that the request was for "/test" (in my test case below);
    it does indeed ask the backend server for an URI "/test" and that fails.
    now, you are in the totally wrong direction. web server 7 includes a highly integrated reverse proxy solution compared to 6.1. unlike 6.1, you don´t have to download a separate plugin . however, you will need to manually migrate your 6.1 based reverse proxy settings into 7.0. please check out this blog link on how to set up a reverse proxy
    http://blogs.sun.com/amit/entry/setting_up_a_reverse_proxy
    feel free to post to us if you need any futher help
    you are probably better off - starting fresh
    - install ws7u4
    - use gui or CLI to create a reverse proxy and map one on one - say content
    http://docs.sun.com/app/docs/doc/820-6601/create-reverse-proxy-1?a=view
    if you don´t plan on using ws7 integrated web container (ability to process jsp/servlet), then you could disable java support as well. this should reduce your server memory footprint
    <install-root>/bin/wadm disable-java user=admin config=<hostname>
    <install-root>/bin/wadm create-reverse-proxy user=admin uri-prefix=/content server=<http://your back end server/ config=<hostname> --vs=<hostname>
    <install-root>/bin/wadm deploy-config --user=admin <hostname>
    now, you can check out the regular express processing and <if> syntax from our docs and try it out within <https-<hostname>/config/<hostname>-obj.conf> file and restart the server. pl. note that once you disable java, ws7 admin server creates <vs>-obj.conf and you need to edit this file and not default obj.conf for your changes to be read by server.
    >
    I have also tried "restart"ing the request like this:
    NameTrans fn="restart" uri="/data"
    ordering is very important here... you need to do this some thing like
    <Object name=default>
    <If not $restarted>
    NameTrans fn=restart uri from=/¨ uri=/foo.
    </If>

Maybe you are looking for

  • Unable to start SQL server agent service

    hi, We have 2 Node SQL Cluster that was working fine. Then We migrated the Linux DNS to Windows DNS successfully.Now restarted the SQL Server after it when we try to start the SQL Server Agent service its says the below msg while machine name and clu

  • App Store problem, appear an application update that does not exist applications

    I have an iMac 2.5 Ghz Intel Core I5 and operating system Mac OS X Version 10.7.3 The problem is an application (Angry Birds) in my app store's update section that doesn't exist my installed applications. It has been seen update section for two month

  • Missing files in j2sdk1.4.2_05 in RedHat Linux EL3

    After installing j2sdk1.4.2_05 using the rpm as available on Sun's site I get the following missing files: missing /usr/java/j2sdk1.4.2_05/jre/javaws/javaws.pack missing /usr/java/j2sdk1.4.2_05/jre/lib/charsets.pack missing /usr/java/j2sdk1.4.2_05/jr

  • Palm OS - Error : Invalid Configuration. Terminating the Palm Desktop

    Hello, I am getting this error when i run the Palm OS Desktop, Error: Invalid Configuration. Terminating the Palm Desktop. This is what we did before we start receiving the issue. Change the computer for the user from domain1 to domain2. I have also

  • Searching for a  XI job

    Am a MCA fresher with good percentage. And i have good Acadamic percentage. I know C++, JAVA and i have done SAP-XI. SO if you found any jobs regarding this, please forward me on <b>[email protected]</b>