Accessing the request URI header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008-05-03 02:16 skreiv Joshua Slive:
> On Fri, May 2, 2008 at 7:45 PM, Daniel Aleksandersen 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.

No, that will not work. If that had worked then this would have worked; as 
request_uri already is an enviromental variable-something:
   Header always set Content-Location http://www.domain.tld/%{REQUEST_URI}

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

Shared hosting. I cannot use my own modules.

Other suggestions?
-- 
Daniel Aleksandersen

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux