apache proxy with mod_rewrite

New to mod_rewrite? This is a good place to start.

apache proxy with mod_rewrite

Postby ehappylucky05 » Fri Feb 08, 2013 7:10 am

Hi, I have installed an apache infront of a tomcat, however, after the installation, something weird happened when I tried to post a form in IE; firefox, safari, and chrome are all fine. I am guessing this could caused by the proxy in apache that messed up the post values. I don't have mod_rewrite in my httpd.conf nor in my virtual host file yet, but from what I read online, seems like mod_rewrite might be able to fix this problem. Can you help me out? Below are the 2 log files I got after the post from IE and Firefox. On line 6 and 7 for the ie log, the parameter "showView" was split to 2 lines (line 6 of the firefox log shows the correct parameter); and the last line of IE log , the "showView" was replaced by "hhowView" (last line of the firefox log has the correct "showView" parameter).
is there anyway to fix this weird behavior for IE usign mod_rewrite in apache? Please advise.

IE
############
timer.requestcontext - 0392FCA8:ExecuteRequestInterceptors: null:3144 usec
06Feb2013 16:37:07,860 INFO 0x000002b8 timer.proxy - 0392FD3C:QH-details: 4:3198 usec
06Feb2013 16:37:07,860 INFO 0x000002b8 timer.proxy - 0392FD5C:QH: total:3602 usec
06Feb2013 16:37:07,860 INFO 0x000002b8 timer.httpreqimpl - 0115B230:tC: 3:4595 usec
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Req body for [POST /test/testresetPassword.do HTTP/1.1]
06Feb2013 16:37:07,860 INFO 0x000002b8 http - s
06Feb2013 16:37:07,860 INFO 0x000002b8 http - howView=savePassword&testPassword=xxx
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Req body over
06Feb2013 16:37:07,860 DEBUG 0x000002b8 proxy - ReqContent - /test/testresetPassword.do
06Feb2013 16:37:07,860 DEBUG 0x000002b8 requestcontext - Executing Req Interceptors for /test/testresetPassword.do
06Feb2013 16:37:07,860 INFO 0x000002b8 timer.requestcontext - 0392FB90:ExecuteInterceptorsLoop: null:385 usec
06Feb2013 16:37:07,860 INFO 0x000002b8 timer.requestcontext - 0392FC54:ExecuteInterceptors: null:436 usec
06Feb2013 16:37:07,860 INFO 0x000002b8 timer.requestcontext - 0392FCDC:ExecuteRequestInterceptors: null:550 usec
06Feb2013 16:37:07,860 INFO 0x000002b8 timer.proxy - 0392FD78:QC: null:651 usec
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Req headers for [POST /test/testresetPassword.do HTTP/1.1]
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, */*
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Referer: https://xxx.xxx.com/test/testresetPassword.do
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Accept-Language: en-US
06Feb2013 16:37:07,860 INFO 0x000002b8 http - User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; MS-RTC LM 8; .NET4.0E; InfoPath.3)
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Content-Type: application/x-www-form-urlencoded
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Accept-Encoding: gzip, deflate
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Host: xxx.xxx.com
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Content-Length: 132
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Connection: Keep-Alive
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Cache-Control: no-cache
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Cookie: clientOffset=LTU=; vsc=243_772702a1c6dd788f1e026c74a7689f1c; isCookieEnabled=checkIt; JSESSIONID=344091B8CD4512C1B3B9B8E09F4F321E;
06Feb2013 16:37:07,860 INFO 0x000002b8 http - Req body for [proxy:https://xxx.xxx.com/test/testresetPassword.do] -
06Feb2013 16:37:07,860 INFO 0x000002b8 http - hhowView=savePassword&testPassword=xxx

############

Firefox
############
06Feb2013 12:05:15,251 INFO 0x000002b8 timer.requestcontext - 0393FCA8:ExecuteRequestInterceptors: null:2474 usec
06Feb2013 12:05:15,251 INFO 0x000002b8 timer.proxy - 0393FD3C:QH-details: 4:2528 usec
06Feb2013 12:05:15,251 INFO 0x000002b8 timer.proxy - 0393FD5C:QH: total:3033 usec
06Feb2013 12:05:15,251 INFO 0x000002b8 timer.httpreqimpl - 01A5C170:tC: 3:3946 usec
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Req body for [POST /test/testresetPassword.do HTTP/1.1]
06Feb2013 12:05:15,251 INFO 0x000002b8 http - showView=savePassword&testPassword=xxx
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Req body over
06Feb2013 12:05:15,251 DEBUG 0x000002b8 proxy - ReqContent - /test/testresetPassword.do
06Feb2013 12:05:15,251 DEBUG 0x000002b8 requestcontext - Executing Req Interceptors for /test/testresetPassword.do
06Feb2013 12:05:15,251 DEBUG 0x000002b8 interceptor - PostPinFixVariableInIE.RequestInterceptor-816 has a match for /test/testresetPassword.do
06Feb2013 12:05:15,251 DEBUG 0x000002b8 interceptor - PostPinFixVariableInIE.RequestInterceptor-816 trying to match conditions
06Feb2013 12:05:15,251 DEBUG 0x000002b8 condition - VariableValue-818 returns 1
06Feb2013 12:05:15,251 DEBUG 0x000002b8 condition - ParamPresent-819 returns 0
06Feb2013 12:05:15,251 DEBUG 0x000002b8 interceptor - PostPinFixVariableInIE.RequestInterceptor-816 match failed
06Feb2013 12:05:15,251 INFO 0x000002b8 timer.requestcontext - 0393FB90:ExecuteInterceptorsLoop: null:200 usec
06Feb2013 12:05:15,251 INFO 0x000002b8 timer.requestcontext - 0393FC54:ExecuteInterceptors: null:251 usec
06Feb2013 12:05:15,251 INFO 0x000002b8 timer.requestcontext - 0393FCDC:ExecuteRequestInterceptors: null:362 usec
06Feb2013 12:05:15,251 INFO 0x000002b8 timer.proxy - 0393FD78:QC: null:448 usec
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Req headers for [POST /test/testresetPassword.do HTTP/1.1]
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Host: xxx.xxx.com
06Feb2013 12:05:15,251 INFO 0x000002b8 http - User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Accept-Language: en-US,en;q=0.5
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Accept-Encoding: gzip, deflate
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Referer: https://xxx.xxx.com/test/testresetPassword.do
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Cookie: vsc=127_a060dea1d50cf1c6b622a75600717410; JSESSIONID=4CEE757B0D4D7321BAB3E4BD444DCC60;
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Connection: keep-alive
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Content-Type: application/x-www-form-urlencoded
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Content-Length: 110
06Feb2013 12:05:15,251 INFO 0x000002b8 http - Req body for [proxy:https://xxx.xxx.com/test/testresetPassword.do] -
06Feb2013 12:05:15,251 INFO 0x000002b8 http - showView=savePassword&testPassword=xxx
############
ehappylucky05
 
Posts: 14
Joined: Tue Aug 19, 2008 8:02 am

Re: apache proxy with mod_rewrite

Postby ehappylucky05 » Mon Feb 11, 2013 6:46 am

Any help from anybody? Your help is greatly appreciated!
ehappylucky05
 
Posts: 14
Joined: Tue Aug 19, 2008 8:02 am


Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 7 guests

cron