REQUEST_URI empty at ReplaceServerVariables

Topics: Developer Forum, User Forum
Jun 8, 2010 at 1:33 PM

Hello, i've a problem with the REQUEST_URI parameter. It seems that I lost the value, my IIRF.ini file is

CondSubstringBackrefFlag %
RewriteCond %{QUERY_STRING} navegacion_original
RewriteRule .* - [L]
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteCond %{QUERY_STRING} traducir=([^&]+)
RewriteCond %{QUERY_STRING} !inurl
ProxyPass ^.*$ http://mydomain.com/browser.php?inurl=%{HTTP_HOST}%{REQUEST_URI} [QSA]
RewriteCond %{REMOTE_ADDR} !^192.168.0.100
RewriteCond %{HTTP_REFERER} traducir=([^&]+)
RewriteRule ^(.*\.(php|html|htm|phtml|cgi|pl)|.*/)$ $1?traducir=%1  [QSA,R]

In the log, i see the value of the variable result '/quienes_somos.html?traducir=es-en' when i call to the next url: example.comquienes_somos.html?traducir=es-en but when the IIRF teplace the server variables in 'http://mydomain.com/browser.php?inurl=%{HTTP_HOST}%{REQUEST_URI}' . the result is only 'http://mydomain.com/browser.php?inurl=example.com' instead that has not the {REQUEST_URI}

Here is the log

Tue Jun 08 15:21:53 -  2428 - GetServerVariable: getting 'HTTP_HOST'
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: 15 bytes
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: result 'example.com'
Tue Jun 08 15:21:53 -  2428 - ReplaceServerVariables: alloc 79 bytes
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: getting 'HTTP_HOST'
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: 15 bytes
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: result 'example.com'
Tue Jun 08 15:21:53 -  2428 - ReplaceServerVariables: vName(HTTP_HOST) value(example.com)
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: getting 'REQUEST_URI'
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: 34 bytes
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: result '/quienes_somos.html?traducir=es-en'
Tue Jun 08 15:21:53 -  2428 - ReplaceServerVariables: vName(REQUEST_URI) value(/quienes_somos.html?traducir=es-en)
Tue Jun 08 15:21:53 -  2428 - ReplaceServerVariables: in='http://mydomain.com/browser.php?inurl=%{HTTP_HOST}%{REQUEST_URI}' out='http://mydomain.com/browser.php?inurl=example.com'
Tue Jun 08 15:21:53 -  2428 - GenerateReplacementString: alloc 76 bytes
Tue Jun 08 15:21:53 -  2428 - GenerateReplacementString: result 'http://mydomain.com/browser.php?inurl=example.com'
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: getting 'QUERY_STRING'
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: 15 bytes
Tue Jun 08 15:21:53 -  2428 - GetServerVariable: result 'traducir=es-en'
Tue Jun 08 15:21:53 -  2428 - EvaluateRules: Result (length 83): http://mydomain.com/browser.php?inurl=example.com&traducir=es-en
Tue Jun 08 15:21:53 -  2428 - EvaluateRules: returning 999
Tue Jun 08 15:21:53 -  2428 - DoRewrites: Proxy to: 'http://mydomain.com/browser.php?inurl=example.com&traducir=es-en'

Any help would be appreciated.

Coordinator
Jun 14, 2010 at 10:42 PM

I don't know what the problem might be.

what version of IIRF are you using?

Jun 17, 2010 at 1:29 PM

hello, version is 2.1.1.23

I have found out that if I replace variable %{HTTP_HOST} at the URL http://mydomain.com/browser.php?inurl=%{HTTP_HOST}%{REQUEST_URI, for a constant value, the value of %{REQUEST_URI} is in fact replaced by the correct content.

Could this be a bug?

thanks for your help

Coordinator
Jun 17, 2010 at 2:10 PM

yes, it's certainly possible that it could be a bug in IIRf.