Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 8748 invoked from network); 3 May 2008 00:42:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 May 2008 00:42:48 -0000 Received: (qmail 48070 invoked by uid 500); 3 May 2008 00:42:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 48045 invoked by uid 500); 3 May 2008 00:42:39 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 48034 invoked by uid 99); 3 May 2008 00:42:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2008 17:42:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aleksandersen+apache.org@runbox.com designates 193.71.199.94 as permitted sender) Received: from [193.71.199.94] (HELO aibo.runbox.com) (193.71.199.94) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2008 00:41:45 +0000 Received: from [10.9.9.160] (helo=penny.runbox.com) by greyhound.runbox.com with esmtp (Exim 4.50) id 1Js5p7-0003zf-0o for users@httpd.apache.org; Sat, 03 May 2008 02:41:57 +0200 Received: from [83.108.60.183] (helo=dragon.local) by penny.runbox.com with esmtpsa (uid:642103 ) (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1Js5p5-0006Qz-5P for users@httpd.apache.org; Sat, 03 May 2008 02:41:56 +0200 From: Daniel Aleksandersen To: users@httpd.apache.org Date: Sat, 3 May 2008 02:41:51 +0200 User-Agent: KMail/1.9.5 References: <200805030145.20834.aleksandersen+apache.org@runbox.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805030241.51637.aleksandersen+apache.org@runbox.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Accessing the request URI header 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 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