httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Belov, Charles" <Charles.Be...@sfmta.com>
Subject Re: [users@httpd] mod_headers not echoing environment variables
Date Wed, 09 Feb 2011 01:46:27 GMT
On Sat, 05 Feb 2011 03:18:00 GMT Eric Covener <cove...@gmail.com> wrote:
> On Fri, Feb 4, 2011 at 10:04 PM, Belov, Charles
<Charles.Belov@sfmta.com> wrote:
>> In response to a request for the file:
>>
http://www.sfmta.com/cms/cmta_test/documents/3-18-08CurrentFares_test.pd
>> f?abc
>> with the following directive in .htaccess in the same folder
>>
>> Header set Location "http://%{SERVER_NAME}e%{REQUEST_URI}e"
>
>Those aren't environment variables.  You might be able to use setenvif
>or rewriterule to copy variables they know how to interpolate into
>regular environment variables.

setenvif worked for request_uri, which it turned out is all I wanted.

server_name didn't seem to work, but I decided not to use server_name
anyway
so I don't care.

Thanks,
Charles Belov
SFMTA Webmaster


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message