Lines Matching defs:var
230 * (5 == about 2 variables like "foo%{var}bar%{var}baz")
1808 static char *lookup_variable(char *var, rewrite_ctx *ctx)
1812 apr_size_t varlen = strlen(var);
1822 if (var[3] == ':') {
1823 if (var[4] && !strncasecmp(var, "ENV", 3)) {
1824 var += 4;
1825 result = apr_table_get(r->notes, var);
1828 result = apr_table_get(r->subprocess_env, var);
1831 result = getenv(var);
1834 else if (var[4] && !strncasecmp(var, "SSL", 3) && rewrite_ssl_lookup) {
1836 var + 4);
1839 else if (var[4] == ':') {
1840 if (var[5]) {
1844 if (!strncasecmp(var, "HTTP", 4)) {
1845 result = lookup_header(var+5, ctx);
1847 else if (!strncasecmp(var, "LA-U", 4)) {
1852 result = apr_pstrdup(r->pool, lookup_variable(var+5, ctx));
1856 rewritelog((r, 5, ctx->perdir, "lookahead: path=%s var=%s "
1857 "-> val=%s", path, var+5, result));
1862 else if (!strncasecmp(var, "LA-F", 4)) {
1887 result = apr_pstrdup(r->pool, lookup_variable(var+5, ctx));
1891 rewritelog((r, 5, ctx->perdir, "lookahead: path=%s var=%s "
1892 "-> val=%s", path, var+5, result));
1905 ap_str_toupper(var);
1909 if (!strcmp(var, "TIME")) {
1917 else if (!strcmp(var, "IPV6")) {
1932 if (!strcmp(var, "HTTPS")) {
1939 switch (var[6]) {
1941 if (!strcmp(var, "TIME_DAY")) {
1948 if (!strcmp(var, "TIME_SEC")) {
1955 if (!strcmp(var, "TIME_MIN")) {
1962 if (!strcmp(var, "TIME_MON")) {
1971 switch (var[7]) {
1973 if (var[8] == 'Y' && !strcmp(var, "TIME_WDAY")) {
1977 else if (!strcmp(var, "TIME_YEAR")) {
1984 if (!strcmp(var, "IS_SUBREQ")) {
1990 if (!strcmp(var, "PATH_INFO")) {
1996 if (!strcmp(var, "AUTH_TYPE")) {
2002 if (!strcmp(var, "HTTP_HOST")) {
2008 if (!strcmp(var, "TIME_HOUR")) {
2017 switch (var[8]) {
2019 if (!strcmp(var, "SERVER_NAME")) {
2025 if (*var == 'R' && !strcmp(var, "REMOTE_ADDR")) {
2028 else if (!strcmp(var, "SERVER_ADDR")) {
2034 if (*var == 'H' && !strcmp(var, "HTTP_ACCEPT")) {
2037 else if (!strcmp(var, "THE_REQUEST")) {
2043 if (!strcmp(var, "API_VERSION")) {
2051 if (!strcmp(var, "HTTP_COOKIE")) {
2057 if (*var == 'S' && !strcmp(var, "SERVER_PORT")) {
2060 else if (var[7] == 'H' && !strcmp(var, "REMOTE_HOST")) {
2064 else if (!strcmp(var, "REMOTE_PORT")) {
2070 if (*var == 'R' && !strcmp(var, "REMOTE_USER")) {
2073 else if (!strcmp(var, "SCRIPT_USER")) {
2083 if (!strcmp(var, "REQUEST_URI")) {
2091 switch (var[3]) {
2093 if (!strcmp(var, "SCRIPT_GROUP")) {
2103 if (!strcmp(var, "REMOTE_IDENT")) {
2109 if (!strcmp(var, "HTTP_REFERER")) {
2115 if (!strcmp(var, "QUERY_STRING")) {
2121 if (!strcmp(var, "SERVER_ADMIN")) {
2129 if (!strcmp(var, "DOCUMENT_ROOT")) {
2135 if (*var == 'H' && !strcmp(var, "HTTP_FORWARDED")) {
2138 else if (*var == 'C' && !strcmp(var, "CONTEXT_PREFIX")) {
2141 else if (var[8] == 'M' && !strcmp(var, "REQUEST_METHOD")) {
2144 else if (!strcmp(var, "REQUEST_SCHEME")) {
2150 switch (var[7]) {
2152 if (!strcmp(var, "HTTP_USER_AGENT")) {
2158 if (!strcmp(var, "SCRIPT_FILENAME")) {
2164 if (!strcmp(var, "SERVER_PROTOCOL")) {
2170 if (!strcmp(var, "SERVER_SOFTWARE")) {
2178 if (*var == 'C' && !strcmp(var, "CONN_REMOTE_ADDR")) {
2181 else if (!strcmp(var, "REQUEST_FILENAME")) {
2187 if (!strcmp(var, "HTTP_PROXY_CONNECTION")) {
2190 else if (!strcmp(var, "CONTEXT_DOCUMENT_ROOT")) {
2501 char *var;
2512 var = apr_strtok(s, ":", &tok_cntx);
2516 if (var && val && domain) {
2525 notename = apr_pstrcat(rmain->pool, var, "_rewrite", NULL);
2554 var, "=", val,
2579 var));
4157 /* expand [E=var:val] and [CO=<cookie>] */
4519 const char *var;
4581 var = apr_table_get(r->subprocess_env, REDIRECT_ENVVAR_SCRIPT_URL);
4582 if (var == NULL) {
4586 apr_table_setn(r->subprocess_env, ENVVAR_SCRIPT_URL, var);
4590 var = apr_table_get(r->main->subprocess_env, ENVVAR_SCRIPT_URL);
4591 apr_table_setn(r->subprocess_env, ENVVAR_SCRIPT_URL, var);
4610 var = apr_pstrcat(r->pool, ap_http_scheme(r), "://", thisserver, thisport,
4612 apr_table_setn(r->subprocess_env, ENVVAR_SCRIPT_URI, var);