Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
documentation:2.1:writingrulesand_headers [2019/11/06 10:15]
cmaudoux [Rules on authentication level]
documentation:2.1:writingrulesand_headers [2019/11/06 10:19] (current)
cmaudoux [Writing rules and headers]
Line 5: Line 5:
 <note important>​Note that variables designed by $xx correspond to the name of the [[exportedvars|exported variables]] or [[performances#​macros_and_groups|macro names]] except for ''​$ENV{<​cgi-header>​}''​ which correspond to CGI header //​(''​$ENV{REMOTE_ADDR}''​ for example)//​.</​note>​ <note important>​Note that variables designed by $xx correspond to the name of the [[exportedvars|exported variables]] or [[performances#​macros_and_groups|macro names]] except for ''​$ENV{<​cgi-header>​}''​ which correspond to CGI header //​(''​$ENV{REMOTE_ADDR}''​ for example)//​.</​note>​
  
 +===== Available $ENV{} variables =====
  
 +The %ENV table provides:
 +  * all headers in CGI format //​(''​User-Agent''​ becomes ''​HTTP_USER_AGENT''​)//​
 +  * some CGI variables depending on the context:
 +    * For portal: all CGI standard variables //(you can add custom headers using ''​fastcgi_param''​ with Nginx)//,
 +    * For Apache handler: REMOTE_ADDR,​ QUERY_STRING,​ REQUEST_URI,​ SERVER_PORT,​ REQUEST_METHOD,​
 +    * For Nginx handler: all variables given by ''​fastcgi_param''​ commands.
 +  * For portal:
 +    * $ENV{urldc} : Origin URL before Handler redirection,​ in cleartext
 +    * $ENV{_url} : Origin URL before Handler redirection,​ base64 encoded
 +
 +See also [[extendedfunctions|extended functions]].
 ===== Rules ===== ===== Rules =====