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 7081679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:57:03+00:00 2026-05-28T06:57:03+00:00

We have a web application (JQuery and Spring) running on weblogic app server. There

  • 0

We have a web application (JQuery and Spring) running on weblogic app server. There is a apache http server in front of the app server.
All incoming requests will come through the web server and reaches the app server.

Now we have a requirement that we have to verify for a value in the incoming http request header and if present, the request has to sent to the app server. If not we have block the request and in turn display a static error page to the end user.

I want to know whether we can implement this logic in the apache http server. Please advice.

  • 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-28T06:57:04+00:00Added an answer on May 28, 2026 at 6:57 am

    You can do this with mod_rewrite. You didn’t include what your exact set up is, but if you have a mod_proxy type config you just want to make sure that the rewrites don’t interfere with the passage of normal traffic. In a general sense, in your Apache config, you would:

    • Turn on rewrite
    • Check for the condition
    • Apply the rewrite rule based on the conditions

    To give a really simple example, if you were looking for a key in the query string, and forbidding access (403) if it was not present, you would do something like this:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{QUERY_STRING} !somekey
    RewriteRule ^.*$ - [F,L]
    

    This can be as complicated as you wish really, you can chain conditions together (implicit AND or an explicit or witht he [OR] flag) and you can serve an actual page rather than a forbidden message.

    As always, back up your config before tinkering, and it might be a good idea to test this out with .htaccess (though for performance reasons it’s better to move it to the actual config for production loads).

    The rewrite documentation is a great resource too:

    http://httpd.apache.org/docs/current/mod/mod_rewrite.html

    It really is quite good documentation. For some pointers – you will want to look up the flags ([L] = last; [P] = treat as a proxied request; [F] = forbidden etc.) and you will need someone generally familiar with regular expression syntax

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

Sidebar

Related Questions

I have a web app with spring,jsp and jquery in a apache tomcat 6,
I have a spring MVC based web application running on Tomcat 7.0. We are
I have some web application that uses jQuery to send AJAX requests to server.
I've read through all of the Spring 3 Web docs: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/spring-web.html but have been
I have a web application that is using both jQuery 1.2.6 and YUI 2.6.0
I have an interactive web application powered by jQuery where users can manipulate visual
I have a web application that uses the current version of JQuery that needs
I have a web-based application which is very highly reliant on jquery / javascript,
I have started a new web application and have decided to use jquery as
I am using Spring Web MVC for my application. I have 1 dropdown list

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.