Maintaining cookies at the HTTP server level?

Hi,
My Apache HTTP server authenticates the request by hitting another server before forwarding the request to the J2EE App Servers. Is there any way to avoid this authentication hit on every request at the HTTP Server using cookies for the same session since the user is already authenticated.
Thanks
AA

ash261080 wrote:
Hi,
My Apache HTTP server authenticates the request by hitting another server before forwarding the request to the J2EE App Servers.Is that a custom logic you have built? I havent read about such behaviour offered by default.
ram.

Similar Messages

  • 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 to calculate the byte tranfer to the http server

    Hi,
    I'm developing a multiplayer game on mobile phone.
    At the end of the connexion, I need to know how many bytes were sent and received from the http server.
    Here is the part code for the connexion to the server :
    HttpConnection connection = (HttpConnection)Connector.open(request);
    connection.setRequestMethod(HttpConnection.GET);
    InputStream is = connection.openInputStream();
    long length = connection.getLength();
    byte[] datach = new byte[1];
    int ch = 0;
    while(is.read(datach) != -1)
         ch = datach[0];
         b.append((char)ch);
    String s = b.toString();The size of each data I have to send or receive is less than 50 bytes.
    All I do for now is adding the request size and the server response size.
    For each request, I have to count the header size and the data size. But I don't know how to find the header size of my request.
    And for each response from the server, I count the header size and the data size with connection.getLength().
    I don't know whether it's the right method.
    Does anyone know a better method to calculate exactly the bytes sent and received?

    TCP/IP "overhead" is basically 20%.

  • The http server seems not to be there

    I installed HTMLDB2.0 and it seems that the installation finished fine. I use a 10GR2 instance and I can see a schema called FLOWS_020000 which has lots of tables in it.
    Now I try to find where to (re)start the HTTP server (on a linux box). But it seems that it never has been installed at all. So, no process has a name with HTTP and I even can't find a directory named Apache or a file called dcmctl, like the Oracle HTML DB Installation Guide says.
    I installed the Oracle server software 10GR2 completely but didn't anything regarding the Oracle AS.
    Seems that there's something missing but I have no clue, what. I assume that not the complete AS is needed, is it?
    TIA
    Brigitte

    Hello Brigitte,
    The Oracle HTTP server installation is not part of the database or HTML DB installation. You need to do it yourself. You can find the proper software on the 10gR2 companion cd, or you can download it from OTN.
    After installing the HTTP server you'll find all the directories and files that you need to complete the post-installation tasks of HTML DB.
    You can search this forum for terms like apache or dads.conf, and you'll find several threads on the subject.
    Regards,
    Arie.

  • Problems starting the http server

    I have problems starting 9ias http server. I issue:
    /u09/ora9ias/infra/opmn/bin> opmnctl startall
    opmnctl: starting opmn and all managed processes...
    Request partial success -- 1 of 4 processes started.
    and the HTTP server does not start.
    If I go to the enterprise manager, the only service started is Single Sign On.
    If I try to enter to the HTTP server it gives me the following error:
    An error was encountered while loading page. Failed to initialize configuration management user session.. Repository access failed Root Cause: Password could not be retrieved. Password could not be retrieved
    The iasdb is already started and working.
    Any clues what can be going wrong??
    help is greatly appreciated.

    Jorge, I suspect you've already fixed this problem. But if not, I have a standard operating procedure for this. Here's the gist of it, let me know if you need more detail.
    1. shutdown the opmn layer (opmnctl stopall)
    2. determine if the httpd.pid file exists (it's in the Apache/logs directory on linux)
    3. delete the .pid file if it's there
    4. if not, or if there's still a problem, tail the error_log for info
    5. try to start the httpd (dcmctl start -ct ohs)
    6. still a problem? ps -auxw | grep httpd
    7. kill off the process(es)
    8. try again to start up with dcmctl command in step 5
    I can usually get it going at this point. If not, I have to do a reboot, which has always worked. Don't forget to shutdown the emctl and webcachectl if you're rebooting.
    Hopefully this helps. It took a lot of learn-as-you-go for us to get this procedure. I'm sure the pros will role their eyes! :-)

  • Having trouble with the HTTP Server vi

    I'm having trouble using the HTTP Server program to view the front panel of my program remotely.
    When I initially start the server program everything works fine. However, the program hasn't been able to run for more than one or two days at a time before it freezes and won't display the front panel.
    The only clue I can see as to what is going on is that there are always several pending connections and active connections listed in the HTTP Server front panel when it isn't working properly. Stopping the server and starting it again fixes the problem temporarily and it works fine for another day or two.
    Any ideas about what might be causing this problem?

    Which OS do you have? Win95 and 98 are not very stable systems, so you might want to try with WinNT. You should be able to run the HTTP server for few days on WinNT.
    Since restarting the server solves the problem, maybe you can try to programmatically restart the server every 24 hours. This can be done within LabVIEW with the HTTP Server Control.vi. Be aware that this will close all the connections, not just the pending ones.
    Does this problem happen every couple of days, or are you able to run it sometimes for a longer period time? Is it related to how many clients request control?
    Also, take a look at the Access Log, and see if you notice anything strange at the time when the problem happens.
    I hope this helps.
    Have a pleasant day.
    Zvezdana S.
    Nat
    ional Instruments

  • Tunneling result unspecified - is the HTTP server

    We have a SOA Suite Server and we have HTTP Tunneling enabled on it.
    I'm attempting to create a JMX connection to it but have been getting the following exception:
    Caused by: java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: '10.240.81.4' and port: '15980' a WebLogic Server?
         at weblogic.corba.client.http.TunneledSocketImpl.throwProtocolException(TunneledSocketImpl.java:498)
         at weblogic.corba.client.http.TunneledSocketImpl.connectInternal(TunneledSocketImpl.java:253)
         at weblogic.corba.client.iiop.BiDirSocketImpl.connect(BiDirSocketImpl.java:355)
         at weblogic.corba.client.iiop.BiDirSocketImpl.connect(BiDirSocketImpl.java:139)
         at weblogic.corba.client.http.TunneledSocketImpl.connect(TunneledSocketImpl.java:289)
         at java.net.Socket.connect(Socket.java:579)
         at java.net.Socket.connect(Socket.java:528)
         at weblogic.corba.client.iiop.BiDirSocket.<init>(BiDirSocket.java:22)
         at weblogic.corba.client.http.TunneledSocket.<init>(TunneledSocket.java:31)
         at weblogic.corba.client.http.TunneledSocketFactory.createSocket(TunneledSocketFactory.java:105)
         at weblogic.corba.client.iiop.BiDirORBSocketFactory.createSocket(BiDirORBSocketFactory.java:89)
         at com.sun.corba.se.impl.legacy.connection.SocketFactoryConnectionImpl.<init>(SocketFactoryConnectionImpl.java:73)
         ... 30 more
    Here is how I'm trying to create the connection where the service URL is
    service:jmx:http://localhost:<port>/jndi/weblogic.management.mbeanservers.runtime
    JMXServiceURL serviceURL = new JMXServiceURL("http", uri.getHost(),
    uri.getPort(), "/jndi/" + "weblogic.management.mbeanservers.runtime");
    Map<String, String> map = new HashMap<String, String>();
    map.put("java.naming.security.principal", username);
    map.put("java.naming.security.credentials", password);
    map
    .put("jmx.remote.protocol.provider.pkgs",
    "weblogic.management.remote");
    jmxConn = JMXConnectorFactory.newJMXConnector(serviceURL, map);
    jmxConn.connect();
    It works fine when we use the t3 protocol, but we need to use HTTP. Any thoughts?

    Suddenly I was able to get past this issue and have been able to create the JMX connection.
    However, now, after getting the MBeanServerConnection and trying to create a new Locator object, I'm getting the following:
    javax.naming.NameNotFoundException: Exception in lookup.: `FacadeFinderBean' could not be found. [Root exception is weblogic.corba.cos.naming.NamingContextAnyPackage.NotFound: IDL:weblogic/corba/cos/naming/NamingContextAny/NotFound:1.0]
         at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:65)
         at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:230)
         at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:168)
         at javax.naming.InitialContext.lookup(InitialContext.java:411)
         at oracle.soa.management.internal.ejb.EJBLocatorImpl.lookupBean(EJBLocatorImpl.java:739)
         at oracle.soa.management.internal.ejb.EJBLocatorImpl.lookupFinderBean(EJBLocatorImpl.java:717)
         at oracle.soa.management.internal.ejb.EJBLocatorImpl.<init>(EJBLocatorImpl.java:168)
         at oracle.soa.management.facade.LocatorFactory.createLocator(LocatorFactory.java:20)
    Hashtable jndiProps = new Hashtable();
    jndiProps.put(Context.PROVIDER_URL, "http://localhost:<port>/soa-infra");
    jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    jndiProps.put(Context.SECURITY_PRINCIPAL, username);
    jndiProps.put(Context.SECURITY_CREDENTIALS, password);
    jndiProps.put("dedicated.connection", "true");
    Locator lLocator;
    try {
    //If this fails, it's an older version of SOA Server and we must read directly from MDS
    lLocator = LocatorFactory.createLocator(jndiProps);

  • How do I adjust the HTTP server receive timeout for one site on Ironport S670

    Hi All,
    How do I adjust the HTTP server receive timeout for one site on Ironport S670?A web based application can take a long time (45 to 60 minutes) to fill a form once a user Login.The proxy will timeout the connection before the result comes back.How do I resolve the issue?
    Thanks

    Sandeep,
    There is no option to adjust timers for one specific website.  Any changes will affect all websites.  The setting is under Security Services > Web Proxy.  If only one site is being problematic for you, I'd recommend you consider bypassing it.
    Is this an HTTPS site?
    You may want to open a TAC case and have them take a deeper look into this.
    -Vance

  • How to maintain Status at the line item level

    Hi Folks,
    How to maintain the status at the line item level. I could able to find the path in the IMG for Header level. I will be looking forward for the path or the procedure for maintaining the status at the Line item level. Do the needful. Thank you.
    Regards,
    Amrita

    Hi Amrita,
    Goto SPRO>Customer Relationship Management>Transactions>Basic Settings>Define Item Categories, Select your Item category and click on Details. Witin profiles set type Assign Status profile you created against field Status profile.
    Hope this helps.
    Regards,
    Chandrakant

  • Performance of the HTTP Server

    Hi!
    I'm looking to deploy a corporate website that has a number of database led applications.
    We expect our site to get 50,000+ web page requests daily - I was wondering if the web server that comes with Sun ONE Application Server 7 is capable of this sort of load?
    Are there any documents comparing it to other web servers (Apache, Zeus, MicroSoft etc).
    Also what does Sun's Web Server product offer that I dont get with AppServer's Http Server?
    Thanks
    Gareth

    What? You said:
    "We've recently installed Grid Control Mgmt Server and only access it from the local intranet, but the performance seems to be wanting."
    So, on your OEM server, are you running out of CPU and/or memory? Or are they fine, suggesting a bottleneck elsewhwere, e.g. the network?
    What are your sga/pga settings for the 9i and 10g repository databases? How much of that 2Gb of RAM is being eaten by them? If your server is paging out, then performance will be slow.
    Have you read the advanced guide, especially chapter 9 Sizing and Maximizing the Performance of Oracle Enterprise Manager?
    Message was edited by:
    bazzza

  • What is the HTTP server [default/built-in] that Weblogic server uses

    Is the built-in web server in weblogic Apache or is it some other http server that
    BEA owns ?

    WebLogic Server is a single java process, that has two listen ports, one SSL
    and non-ssl.
    These two ports use protocol discrimination to handle multiple protocols on
    a single port.
    NON-SSL --> http, t3 (proprietary rmi protocol), iiop
    SSL --> https, t3s, iiops
    So WebLogic comes with a build in Webserver. Or you can use a third party
    webserver in front of WLS with plugin to proxy to WLS.
    See;
    http://edocs.bea.com/wls/docs81/plugins/
    Cheers
    mbg
    "Manoj" <[email protected]> wrote in message
    news:3edb0ba5$[email protected]..
    >
    Is the built-in web server in weblogic Apache or is it some other httpserver that
    BEA owns ?

  • Can URL redirects be configured with XE and what is the HTTP Server

    I would like to be able to URL redirects. I'm running XE with Application Express 2.1.0.00.39.
    I want to be able to have a URL like www.schoolwebsite.com and when the user hits it - have it redirect to the Apex page for the application. I was thinking that I needed to use a redirect in the HTTP config file, and that XE used Oracle_HTTP and I could configure in that manner.
    But, I can't find an Apache directory.
    1. What HTTP server is used with XE and Application Express 2.1.0.00.39?
    2. Can I configure for this type of redirect?
    3. Do I need to install an HTTP server to accomplish this?
    Thanks,
    Stephen

    Hi Steven,
    search for "proxy" in this forum.
    It explains how to configure a plain Apache http server as a proxy to XE. Then you can use the default mechanisms to rewrite an url.
    Here is an example (save the file as XE.conf and store it in the Apache conf directory (file httpd.conf is there).
    The following instructions are valid for Apache2.
    # Activate the following modules in httpd.conf:
    #LoadModule proxy_module modules/mod_proxy.so
    #LoadModule proxy_connect_module modules/mod_proxy_connect.so
    #LoadModule proxy_http_module modules/mod_proxy_http.so
    #LoadModule rewrite_module modules/mod_rewrite.so
    #LoadModule headers_module modules/mod_headers.so
    # include the XE configuration (this file XE.conf) in httpd.conf:
    #include "conf/XE.conf"
    # XE listener is buggy, thus downgrade to http 1.0
    SetEnv force-proxy-request-1.0 1
    RewriteEngine On
    RewriteLog "D:\Programme\Apache Group\Apache2\logs\rewrite.log"
    RewriteLogLevel 0
    ## Rewrite requests /apex, /i, /public, /sys to locally installed XE
    RewriteCond %{REQUEST_URI} /(([^/]+)(/.*)*)$
    RewriteCond %2 =apex [OR]
    RewriteCond %2 =i [OR]
    RewriteCond %2 =public [OR]
    RewriteCond %2 =sys
    RewriteRule ^/(.*) http://%{SERVER_NAME}:8080/%1 [P]
    ## Rewrite main page
      RewriteEngine On
      RewriteRule ^/$       http://%{SERVER_NAME}/apex/f?p=107:1 [R]
      RewriteRule ^/index.html$       http://%{SERVER_NAME}/apex/f?p=107:1 [R]
    ## Rewrite /app1
      RewriteRule ^/app1$      http://%{SERVER_NAME}/apex/f?p=107:1:0 [R=303]Regards,
    ~Dietmar.
    Edited by: Dietmar Aust on Oct 14, 2008 1:16 AM

  • Getting the HTTP server name, port and context name inside the init()

    I have a servlet which is initialized when the Web server comes up. Is there any way I can print the complete URL from this servlet?
    I am aware that this can be done by using request object. But note that in this case, there is no request object. All we have is the ServletConfig and ServletContext.
    Pasting a part of my code here.
    public class MyInit extends HttpServlet
    private ServletContext m_servletContext = null;
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    m_servletContext = config.getServletContext();
    //System.out.println("Print the URL here...")
    }

    Only a request has a URL. It's possible for servlets to be mapped to respond to more than one URL, and the server can be configured to respond to more than one host and at more than one port. So none of those things you are asking for have any meaning without an actual request.

  • Inserting Cookie to the real server

    Hi ,
    I have a requirement , i have no clue how far it is possible to implement.
    I need to insert a cookie ( specifc value) to the real servers while doing the stickiness..
    means stickiness is based on the insertion of cookie , i need it as follows
    If the requesting is serving to SERVER1 then it should pass a cookie value SRV1 with that request , if SERVER2 and then cookie value SRV2 should be inserted and so on and so forth.
    Is this practically possible.
    I have done insertion of HTTP cookie using ACE but this kind of request i have never achieved. Is it possible to do it in ACE?
    -Parvees

    To me the definite answer is no. I'm not even sure you could do it with another product.
    Usually we don't play with cookies but fields of HTTP headers instead. But on the ACE (and most load balancers) you'll find the same or close behavior.

  • Privilege Level to view flash (https server)

    Hello community,
    I've been digging around and I don't think I'm asking the right question, so I thought I'd ask it here. I've been working a little bit with Cisco native IOS HTTP/HTTPS server.
    I've put together a SSI (.shtml) page to pull data from my router, and display it in an easy to read format for quick and simple troubleshooting. The thing is, is that I must be a lvl 15 user to access this file when it's loaded onto flash.
    To get around this, I felt it would be easier to grant users lvl 1 SSH access and have them authenticate against a RADIUS server. Although that gets around the issue, I'd still really like to try and figure this out. I'd like to know what I need to do to make it so that a lvl 1-14 user can log into the IOS https server, and open my .shtml page without it prompting for lvl 15 authentication.
    (I can login with my test user (privilege lvl 1) to the HTTPS server without issue. It's when I try and browse to: https://router/level/01/file.shtml , that's when I'm prompted to login as lvl 15.)
    Thanks in advance everyone. Your assistance / insight into this would be very much appreciated!

    this is what fixed the issuefor me:
    Be sure to try this on a test machine and back it up if needed.
    In the system registry
    For each of the following registry keys:
    HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}
    HKEY_CLASSES_ROOT\CLSID\{D27CDB70-AE6D-11cf-96B8-444553540000}
    HKEY_CLASSES_ROOT\CLSID\{1171A62F-05D2-11D1-83FC-00A0C9089C5A}
    HKEY_CLASSES_ROOT\TypeLib\{D27CDB6B-AE6D-11CF-96B8-444553540000}
    Right-click the key, select "Permissions"
    In the Permissions Dialog click the "Advanced" button Click "Add"
    Enter "Everyone" and click "OK" to accept Select "Allow" for the "Query Value", "Enumerate Subkeys", "Notify" and "Read Control" permissions. Do not change any existing permissions.
    Source -  http://www.adobe.com/go/624850b5

Maybe you are looking for