httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Accessing the request URI header
Date Sat, 03 May 2008 00:16:35 GMT
On Fri, May 2, 2008 at 7:45 PM, Daniel Aleksandersen
<aleksandersen+apache.org@runbox.com> wrote:
> Hi list,
>
>  Header always set Content-Location http://www.domain.tld/{REQUEST_URI}
>
>  Looks great, right? Well, it does not work great. How do I get the request URI
>  into the above wild-guess-at-a-syntax?

Header doesn't have direct access to that variable. You'd need to use
mod_rewrite to shove it into an environment variable and then
%{variable}e in Header to get at it.

Or you could just write a custom apache module to set Content-Location
as you'd like.

Joshua.

---------------------------------------------------------------------
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