How do you failover the web server?

I have 2 servers running the web server on them. If one of them fails how do I reroute the users requests to the other one, seamlessly to the user? I am new to using the web server so any help, even remedial would help!! Thanks!

Ya, thats part of the problem. Right now we are using Sun Cluster to provide a network resource that handles which web server is to handle the request. A virtual ip address so to speak. We'd like to stop using Sun Cluster as it's a bit unstable, ie reboots the cluster randomly without error messages or warnings. We'd like to just use the web server/application server clustering capabilities and eleviate the extra layer of complexity with Sun Cluster. I know Sun Cluster has a Web Server agent to do this, but that is why we're trying to not go down that road. It is starting to sound like we may have to though as buying additional hardware isn't an option.

Similar Messages

  • How do you modify the web.xml to lock down the pages from a user role

    how do you modify the web.xml to lock down the pages from a user role

    I'll make a stab at your question:
    The following is an example of where a URL is protected within a web.xml deployment descriptor. In this example, the URL /protectedA within the application is protected:
    <!-- security constraints -->
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>protectedA</web-resource-name>
    <url-pattern>/protectedA</url-pattern>
    </web-resource-collection>
    <!-- authorization -->
    <auth-constraint>
    <role-name>sr_developer</role-name>
    </auth-constraint>
    </security-constraint>
    Sun's explaination here:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security4.html

  • How do you surf the web while you are on the iphone?

    How do you search the web while you are having a phone conversation? do you have to put the phone on speaker?

    You dont have to, but it is hard to listen and look at the screen at the same time.  You can also use a bluetooth headset or ear phone that came with the phone.  Remember you can not do both at the ame time on Verizon.

  • How do you switch between web server snapshot jpg and png modes?

    I read in another forum a posting by "NathanK" stating:
    "The snapshot feature of the web server can
    generate images either as png or jpg. In LabVIEW 8.6 and later, the
    default which is generated by the web publishing tool is the png
    format. In this mode everything happens in memory so there is no
    snapshot image file generated.
    In the jpg mode there is a
    temporary file, however it is not always the same file and the file is
    deleted after it is uploaded to the client. I would not recommend
    trying to use this programmatically.
    If you need more
    control over a snapshot of a front panel (and you are using 8.6), I
    would recommend making a custom web service that takes a picture of a
    VI's front panel and returns it to the client. Then you would have
    control over the image."
    I am currently using the web publishing tool snapshot feature with an EXE program written in LV8.6.  However, each time a browser accesses the html file, the EXE file's memory grows by 72KB (this happens with my custom EXE program and with LabVIEW.exe when running the VI in development mode).  I'm assuming this is the png that is generated each time a snapshot is taken, but the program never de-allocated the memory and the program eventually crashes.  I'm aslo assuming that if I switch to "JPG mode", the web server will generate a temporary file and eventually delete it, elminating the memory leak.  The problem is, I don't know how to change the modes from png (default) to jpg.

    I am and have been using the .snap function on many applications since LabVIEW 6.1.  It's very simple, easy to use, does exactly what I want it to do, and is still in the documentation of LabVIEW 8.6, 2009 and 2009 SP1 as being supported. 
    If I am not mistaken, don't you need to have the LabVIEW runtime engine on the target system to use embedded mode?  I don't want to have to try and keep everybody who wants to see a screenshot of my program to have to have a run-time engine installed.  For one reason, I don't know everybody who wants to monitor our system and they literally can be anywhere in the world if the VPN to our network.  Second, those who I do know would would have me install it for them.  Third, why go "backwards" in capability...everybody would ask me "Why do we have to do this now?..we never had to do it before", and I don't want to use my time/energy at work to explain why NI cannot fix a memory leak that has been identified in at least the last 3 versions of LabVIEW and is still not fixed. 
    I had been using either LV 6.1 or 7.1 for a good part of 10 years and had very few problems with them (BTW, DAQmx is the greatest thing every put on a computer EVER).  I finally make the transitioin and start using LV 8.6 on a major test platform last year, got to the very end of it and find this out.  <sigh!>
    It is funny (maybe not), but my work around feels like I just changed the floormats in my Toyota car to keep it from "crashing".
    However, if I am mistaken and you do NOT need to use LV runtime engine for embedded mode, ignore everything I wrote above and please let me know that this is the case and I will look into it.

  • How can I make the web server work on port 80 and not 443. I can only access my website using https.

    On a Mac Mini server with OS X Lion 10.7.2, I am unalbe to get the web server working on port 80. It switches automatically to port 443 (https).
    This situation complicates the access to FileMaker Web publishing, as I don't want my clients having to use https.
    How can I change that? Does anyone know?
    Thanks for any reply

    in the server: I checked the SSL certificate. Tried several configuration.
    Well, that's a problem for a start.
    Your port 80 connection should NOT use SSL. Port 80 is the standard HTTP port, not HTTPS and most applications that connect to port 80 will not expect to use SSL
    If you want to run a site under both HTTP and HTTPS then you create two sites, one on port 80 without SSL and one on port 443 with SSL

  • How do you get the web application path from the servlet?

    I have created a web application which is installed in
    /webapps/myApplication
    /webapps/myApplication/data/users.xml
    /webapps/myApplication/WEB-INF/classes/myServlet
    How can you get the path to the "users.xml" file from the "myServlet" file?
    The code below doen's seem to return the xml file. anybody knows why?
    public class myServlet extends HttpServlet {
    public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException
    File myXmlFile = new File("/data/users.xml");

    Try this..
    String FileName = getServletContext().getRealPath("\\data\\users.xml");
    File myXmlFile = new File(FileName);
    hope this helps..

  • How do you use edge web font in Edge Reflow?

    By default, I don't have a lot of fonts. It's just viewing a few of them.
    How can you get the web font for Edge Reflow? Can you use font from fontbook?
    Is there a way to download Edge Web Font?

    Above: using Brandon Grotesque (web use font) does not display the correct font.
    I'm using Typekit and have an internet connection. If I switch to a "desktop use" font, it shows up, so I'm guessing the "web use" only fonts won't show in Reflow. A little frustrating when you're trying to get an accurate preview/determine best font styling because of the back-and-forth workflow.
    Above: using Source Sans Pro (desktop use font) does display the correct font.

  • How can you display a dynamically loaded vi to the Web Server?

    I am working with LabView 6.1 and the Web Server. I can call a subvi and have it display on a remote machine using a browser with no problem. But what I would like to do is dynamically load and run a vi and have it display on the remote computer using only a browser. I have tried a small example of a front panel that invokes the run vi method (and fp.open prop) on another vi when a button is pressed, but the invoked vi is displayed only on the local computer. Is there any way of viewing dynamically loaded vi's on a remote machine without having a copy of LabView running on it?

    If i understand your question correctly, you want to monitor vi that are dynamically loaded on a remote machine without having LabVIEW installed on the machine from witch you want the monitor. I don't think it's possible how ever a good reference book would be Internet applications in LabVIEW. You can find it on BARNES&NOBLE.
    Hope i could help

  • How do you use the wdeploy tool in iPlanet Web Server with Windows 2000 Server?

    I found this on the knowledge base, but only described how to use this with Unix. Does this work with Windows? How do you set the IWS_SERVER_HOME environment variable as well? I don't see it in the file.
    Thanks

    Hi,
    This is pretty common scenario. The best way to achieve this is to split your servers using a collection and deploy a different client settings. You could target your collection using the OS or an OU in AD. There are many option there.
    You could also limit the access to the Server collection using Role Based Access to avoid any human "errors" on these collections. Users without rights to these collection just won't see them.
    https://technet.microsoft.com/en-us/library/gg682067.aspx?f=255&MSPPError=-2147217396
    http://blogs.technet.com/b/configmgrteam/archive/2011/09/23/introducing-role-based-administration-in-system-center-2012-configuration-manager.aspx
    Benoit Lecours | Blog: System Center Dudes

  • How to use the web server tips (connected/disconnected)?

    Using the web server tips into a VI to know when a client is connected or disconnected.
    Hello Everyone
    I want to use the tips that appear when a remote user gets control of my VI via web server. That way I will be able to trigger some other operations as soon as the user gets in or out my VI. How can I extract the information that contains that (user has or has not control). I hope you can help me.
    Regards
    Marco Roman

    There is a VI method called Remote Panel Client Connections. It returns an array of clusters with connection information and also has a Controller output. If the controller output is -1, no clients are connected.

  • How to change the web server??

    How to change the web server in the details of the mobile application component in the MI webconsole??

    hello irene,
    had your tried checking on the "Use IP instead of host
    name" checkbox?
    to edit your registered application info, go to
    "Upload Mobile Component" tab and click on the Edit icon
    on the left part of the record list which corresponds to
    the application you had just uploaded.
    your application is uploaded to the same host as your
    web console application is running on. if you like to
    point it to a different server where you have your
    archive accessible, you have to change your mcd
    deployment attributes on your middleware. try the ff:
    1)run tcode: mi_mcd
    2)click on Create Mobile Component
    3)Enter Mobile Solution Name and Version
    4)Click on Display MCD
    5)Select Deployment Tab
    6)Click on Edit
    7)Change the values of WEBSERVER and WEBPATH location eg.
      if your archive is located at
      http://myotherserver:80/archive/myapplication.war
      your entry will be:
      WEBSERVER: http://myotherserver:80
      WEBPATH: /archive/myapplication.war
    where you myotherserver is the name of your http host
    server and myapplication.war is the name of your archive.
    the archive directory is just a virtual directory where
    your application archive is.
    you might need to change the port number depending on
    your http server port.
    regards
    jo

  • How to  Restart the web server

    Hi,
    on tools 8.49 on Unix AIX, I'm reading this
    E-WL: What is Verbose Garbage Collection (verbosegc) and How do I Enable it on WebLogic? [ID 759137.1]
    and it is asked to :
    2. Restart the web server
    How should I do that ?
    Thank you.

    If it is restart, then you need to stop it first and then stat it again.
    cd $PS_HOME/webserv
    ls
    (then you find your domain directory)
    cd <your domain directory>
    cd bin
    ./stopPIA.sh
    (wait for conclusion)
    ./startPIA.sh

  • Can I do automatic page refresh? How many of them can the web server take?

    I'd like to ask this question in both short and (if you be so kind) in long form:
    Short: Can a portion of my APEX page be set to refresh automatically ones every few minute? Not the whole page, just a portion. Would I have to use frames for that? Can they be invisible?
    Long: I'd like to create a web interface, which would allow multiple users to track duration of some tasks. More importantly it has to allow other users to see each other's progress (which task somebody is on, how long he has been on it down to several minutes). I understand to server side of it. However, the client side presents a problem of information refresh. I want users to be able to sit without touching their mouses or keyboard and see changes for other users as they happen.
    What do I mean by "as they happen?" Ideally, I'd like to present changes in real time. My brief research of Push HTTP technology, pointed toward Comet or Flash. However, I don't know much about web development and as of now, cannot commit too much time to learning new technologies.
    The second best option, is to update information every couple of minutes. Two question arise here. First is the "short" question - please see above.
    Let's say the page sections can be refreshed automatically. Then I have a question about the load. If I potentially get thousands of simultaneous users, each sending a refresh request every 2-3 minutes, how bad would be the load on the web server and on the network throughput. The amount of data passed can be small, but I am very concerned about the load on web server and the traffic. (I am planning to do virtual hosting with a web hosting company). Somehow I am not concerned about the load on the database (maybe I should be). All calculations will be put in a stored procedure, at least I can optimize it.
    Any other suggestions on how to approach this client refresh issue?
    Thanks a lot.

    These answers are helpful but I still need more info. The first answer suggests putting html refresh tag. But that would refresh the whole page, wouldn't it? I just need to refresh one region. Can it be done with html tag?
    I reviewed the Javascript code in the example referenced in the second answer. It showed that I can refresh a region using Javascript. It looks very nice. However, I need to refresh with data pulled from the database. I am not familiar with AJAX (need to lear JavaScript first) and I know that JavaScript cannot query database on its own. So I am not sure that this example is relevant.
    What I need is: Only 1 region of the page needs to be refreshed every 5 minutes. The rest should "stay put." Everytime the refresh is performed the database will be queried for new data by means of stored db procedure. Do I need to jump through hoops to do that or is it fairly straightforward thing to do?
    Thank you for your time.

  • VIP Failover at the web server level??

    Oracle10gR2
    RHEL 4 AS 64bit
    Hi,
    I wanted to know is the VIP failover at the web server level also? For example, we are running Apex and that uses Apache/HTTP webserver, if that were to go down on one node, would it failover to the other node? Or is it not at the webserver level?
    Thank you.

    Yes, thank you for the documentation.
    However, I had one question about an action script that is in the following documentation:
    http://www.oracle.com/technology/products/database/clustering/pdf/Using_Oracle_Clusterware_to_protect_Oracle_Application_Server.pdf
    In there in APPENDIX B is a script called webcache_action.scr. I modified this script to use in our environment to start and stop the http_server process. We have been having some problems with it...mainly when it fails over, it shuts down the http server, then brings it back up, then down again. This is happening in a production system so it's a big issue. My question is can you explain to me why that is happening and maybe also explain what the script is doing? Maybe I'm missing something. Do I even need to have the stop part in the script? All we need to do is when it fails over to startup the http server on the node, that's it! Any help would be appreciated.
    #!/bin/bash
    SCRIPT=$0
    ACTION=$1
    # Action (start, stop or check)
    ORA_OWNER=oracle
    # ORACLE installation owner
    ORA_HTTP_HOME=/opt/app/oracle/product/10.2.0/http_1
    # ORACLE_HOME of HTTP Server
    RET1=1
    # Internal return values ( do not change )
    RETVAL=1
    # Script return value
    # Main section of Action Script - starts, stops, or checks an application
    # This script is invoked by CRS when managing the application associated
    # with this script.
    # Argument: $1 - start | stop | check
    # Returns: 0 - successful start, stop, or check
    # 1 - error
    # Start section - start the process and report results
    case $1 in
    'start')
    ulimit -n 65536
    ulimit -u unlimited
    echo "DATE: `date`" >> /tmp/e
    echo "ulimit: `ulimit -n`" >> /tmp/e
    echo "ulimit: `ulimit -u`" >> /tmp/e
    # A) START - HTTP Server:
    $ORA_HTTP_HOME/opmn/bin/opmnctl startproc ias-component=HTTP_Server 1>/dev/null 2>&1
    RET1=$?
    # Prepare return values:
    if [ ${RET1:-0} -eq 0 ]; then
    RETVAL=0
    else
    RETVAL=1
    fi
    # Stop section - stop the process and report results
    'stop')
    # A) STOP - HTTP Server:
    $ORA_HTTP_HOME/opmn/bin/opmnctl stopproc ias-component=HTTP_Server 1>/dev/null 2>&1
    RET1=$?
    # Prepare return values:
    if [ ${RET1:-0} -eq 0 ]; then
    RETVAL=0
    else
    RETVAL=1
    fi
    echo "usage: $0 {start stop}"
    esac
    echo "RETURN: $RETVAL" >> /tmp/e
    # Return value to CRS daemon:
    echo "RETVAL: $RETVAL" >> /tmp/e
    if [ $RETVAL -eq 0 ]; then
    exit 0
    else
    exit 1
    fi
    #exit 0

  • How can I reset my web server settings to factory default without reinstalling the operating system?

    I have a MacBook Air that has been upgraded over time from OS to OS. I'm currently running Yosemite.
    I don't have any issues with the computer, it is running fine. Over the years, however, I've tinkered around with the server in different ways (the apache and php that shipped with OS X, MAMP, and with NGINX) and when I went to get back into some development it seems as though there's some conflicts.
    What I'd love to do (assuming it is possible) is reset all of the web server's factory settings so I can just move forward from that point (Apache, PHP, MySQL, etc.).
    I saw there was a terminal command for OS X Server that allows you to reset all of the server settings to how it came from the factory.
    Is there a similar command that works for non-OS X Server or a utility that can restore the web server settings?

    there probably is a way, but the success rate would be fairly low. you say you don't want to reinstall the OS, why? you know that reinstalling it keeps all your files and settings as they are, while resetting system files? (OS X Mavericks: Reinstall OS X)

Maybe you are looking for