You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sivaraman V <av...@gmail.com> on 2011/12/10 13:01:12 UTC
[users@httpd] Validate incoming request based on Request Header
Hi,
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 to display a static error page.
I want to know whether we can implement this logic in the apache http
server. Please advice.
--
View this message in context: http://old.nabble.com/Validate-incoming-request-based-on-Request-Header-tp32951132p32951132.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Validate incoming request based on Request Header
Posted by Nick Kew <ni...@webthing.com>.
On 10 Dec 2011, at 12:01, Sivaraman V wrote:
> 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 to display a static error page.
The simplest solution is mod_taint. Configure the server to forward to
the app server, and mod_taint will divert it to your errordocument
if the incoming headers fail to match what's expected.
The classic solution is to do the same thing with mod_rewrite.
It's more complex of course: you need a rewritecond to check
the headers, then a rewriterule to invoke the error if the check fails.
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org