Getting client ip address with apache front end and tomcat back end

This is a discussion on Getting client ip address with apache front end and tomcat back end within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi all, I had the following code in my httpd.conf which does not work. When I google it, I ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-21-2005
ApacheTomcat
 
Posts: n/a
Default Getting client ip address with apache front end and tomcat back end

Hi all,

I had the following code in my httpd.conf which does not work. When I
google it, I found somebody else has exact same problem. I am wondering
if any one know any other way to do it...

RewriteEngine on
RewriteLog "/tmp/rewrite.log"
RewriteLogLevel 9
RewriteRule ^(.*)&(.*)$ $1&$2 [S=1]
RewriteRule (.*) $1&%{HTTP_COOKIE}
# If there's a '; ' then there is more than one variable left
RewriteRule ^(.*);.(.*)=(.*)$ $1 [E=$2:$3,N]
# Now there's only one variable left
RewriteRule ^(.*)&(.*)=(.*)$ $1 [E=$2:$3]
RewriteRule ^(.*)&$ $1
RewriteRule ^/(.*)$ /done$1 [R]

RequestHeader set sm_user "%{smuser}e" env=smuser
RequestHeader set add goHierId %{goHierId}e env=goHierId
RequestHeader set sessionid %{sessionid}e env=sessionid

When I look at the request header, I don't see the value, it was set to
null. Do anyone know why and how to fix the problem?

thanks in advance

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0