httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel <dferra...@gmail.com>
Subject [users@httpd] Remote_Port not recognized by SetEnvIf?
Date Thu, 23 Nov 2017 11:07:37 GMT
Hello,

I'm trying to make a test using the REMOTE_PORT variable introduced in
2.4.26 according to the docs:
http://httpd.apache.org/docs/2.4/expr.html#vars

Problem I find is I can set this up easily with mod_rewrite.

"
RewriteEngine on
RewriteRule .* - [E=REMOTE_PORT:%{REMOTE_PORT},NE]
Header set RPHdrname %{REMOTE_PORT}e
"

But SetEnvIf does not recognize Remote_Port.
Docs do not say it supports it, but since it is recent, I had hoped
docs were not updated since 2.4.26 or similar.

Tested this, perhaps incorrectly or in a too convoluted way, I will
appreciate your feedback:

"
SetEnvIf Remote_Port (.*) REMOTE_PORT=$1
Header set RPHdrname "%{REMOTE_PORT:}e
"

RPHdrname comes out empty this way ^^^




-- 
Daniel Ferradal
IT Specialist

email         dferradal at gmail.com
linkedin     es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message