Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6768033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:01:29+00:00 2026-05-26T15:01:29+00:00

We have an application runing on Weblogic 10.3, with authentication provided on the application

  • 0

We have an application runing on Weblogic 10.3, with authentication provided on the application itself. We want to put the Weblogic behind an Apache server. The idea is that we will have some public content on the Apache server, and the application will be accessed through the reverse proxy. That’s pretty much very standard. The issue comes with the fact that there are some contents on the Apache server that can only be accesssed if the user has logged in the application. So basically the Apache server will server three type of contents, on diferent URIs:

  • / -> Will contain the public information, and will be server by the Apache
  • /myApp – > Will be redirected by the Apache to the weblogic behind
  • /private – > Will contain the private static information. This should only be accessed if the user has previously logged successfully in myApp.

My question (I’m a total newbie with Apache) is if this possible. My idea is that the application can put a cookie on the responses indicating if the user has logged on the application, and that the Apache will check for that cookie when the user tries to access /private.

Any thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:01:30+00:00Added an answer on May 26, 2026 at 3:01 pm

    The / public information is no problem, it’s straightforward. Using ProxyPass or ProxyPassMatch to reverse proxy “/myApp” to your internal Weblogic server is also straightforward. You may need to use a couple of other options to make sure proxy hostname and cookie domains are setup correctly. But setting up static protected infrormation in “/private” is going to be a little more tricky.

    1) You can check the existence of the cookie set by myApp using mod_rewrite, something like this:

    RewriteCond %{HTTP_COOKIE} !the_name_of_the_auth_cookie
    RewriteRule ^private - [F,L]
    

    The problem with checking a cookie through something like this is that there’s no way to verify that the cookie is actually a valid session. People can arbitrarily create a cookie with that name and be able to access the data in /private.


    2) You could set it up so that anything something in “/private” is accessed, the request is rewritten to a php script or something that can check the cookie to ensure that it’s a valid session cookie, then serve the requested page. Something like:

    RewriteRule ^private/(.*)$ /cookie_check.php?file=$1  [L]
    

    So when someone accesses, for example, “/private/reports.pdf”, it gets internally redirected to “/cookie_check.php?file=reports.pdf” and it’s up to this php script to access whatever it needs to in order to validate the cookie that /myApp has setup. If the cookie is a valid session, then read the “reports.pdf” file and send it to the browser, otherwise return FORBIDDEN.

    I think this is the preferable way of handling this.


    3) If you can’t run php or any other scripts, or the cookie cannot be verifed (like with a database lookup of session_id or something similar), then you’ll have to proxy from within WebLogic. This would be more of less the same basic idea as having access to “/private” through “cookie_check.php” except it’s an app on the WebLogic server. Just like /myApp, you’ll need to setup a reverse proxy to access it, then this app will get the request (which has been internally rewritten from “/private/some_file”) check the cookie’s validity, read the “some_file” file ON THE APACHE SERVER, then send it to the browser, or send FORBIDDEN. This is the general idea:

    ProxyPass /CheckCookie http://internal_server/check_cookie_app
    
    RewriteCond %{REMOTE_HOST} !internal_server
    RewriteRule ^private/(.*)$ /CheckCookie?file=$1 [L]
    

    This condition reroutes all requests for “/private” that didn’t originate from “internal_server” through the /CheckCookie app, and since the app is running on “internal_server” it can access the files in “/private” just fine. This is kind of a round-about way of doing this, but if the validity of session cookies issued by /myApp can only be checked on the WebLogic server, you’ll have to reroute requests back and forth or something similar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application running under WebLogic that is using standard forms authentication. The
I have an application running under apache that I want to keep in the
in eclipse, i have a weblogic server running, and a j2ee application deployed to
I have an application running on a Windows Server 2008, that is processing uploaded
I have an enterprise application running on a WebLogic server. When I modify any
We have a web application (JQuery and Spring) running on weblogic app server. There
I have integrated solr.war in my web application, i am using bea102 weblogic server.
I have a server serverA running a weblogic application App1, with base url /app1/
We have an application on Java 6 running on Weblogic application server 11. I
I have my application running on Tomcat server successfully. I want to run some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.