Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 62843 invoked from network); 11 Mar 2009 08:33:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2009 08:33:57 -0000 Received: (qmail 86322 invoked by uid 500); 11 Mar 2009 08:33:47 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 86069 invoked by uid 500); 11 Mar 2009 08:33:46 -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 86060 invoked by uid 99); 11 Mar 2009 08:33:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 01:33:46 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of krist.vanbesien@gmail.com designates 209.85.219.179 as permitted sender) Received: from [209.85.219.179] (HELO mail-ew0-f179.google.com) (209.85.219.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 08:33:37 +0000 Received: by ewy27 with SMTP id 27so1538315ewy.24 for ; Wed, 11 Mar 2009 01:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=DsuniPfNkjQL8gUblE1+ocIJsiHS3ZmmokC8JItadAc=; b=xxbdhlqioLO7IQR4D1j5oL6ZHJt4ex+NoR7plr4zrJx5BClUYc7YKosq/MlhqfRs3q xsTfV5g6TlkUGLRCYKAcskvKj9EquyZWkqDTAJQ3RLg6tNHjpELCsh6RyrY/T7algaOa /AJOaJAJkYAMZ4iTQ7PRa7cQ2cvnsXGnWfnAA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EetQyfA016ASgbtKAXaUDEfddGx1OLYVhMM/LE5UEit5IA4hs5M8Xq9eNkQNk33Icp /Wp/2c+IgShIcug/iP43p+MEsbLJ2pSDuTSRtrG9eCGz75C91SlMQf2ftKeL3GQHQlYI 06oNMO7wmc8CyZDtJAuE+3fBWUqoNN2A/OsC0= MIME-Version: 1.0 Received: by 10.210.71.12 with SMTP id t12mr1196549eba.37.1236760397580; Wed, 11 Mar 2009 01:33:17 -0700 (PDT) In-Reply-To: References: <6ed6382b0903092257m5fe1da4bwf617c13e3f74d3f8@mail.gmail.com> Date: Wed, 11 Mar 2009 09:33:17 +0100 Message-ID: <6ed6382b0903110133pe595a1w8f772eebdf41bd81@mail.gmail.com> From: Krist van Besien To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=000e0cd1d55a2b8a750464d3b843 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Port-based vhosts --000e0cd1d55a2b8a750464d3b843 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Mar 11, 2009 at 4:35 AM, Charles Sprickman wrote: > > OK. That makes perfect sense. At this point, my main concern is actually > understanding how this works. When I was reading the docs on > "UseCanonicalName" ( > http://httpd.apache.org/docs/2.2/mod/core.html#usecanonicalname) I noticed > that reference is made to "self-referential" URLs. Under what conditions > does Apache then get involved and alter the URL? Just redirects? I > understand a common redirect is just adding a trailing slash when the user > does not supply it. What are some other common cases? Who's call is it when > a simple static site uses non-absolute URLs for all the links? Is the > browser building the fully-qualified links or apache (I suspect the former)? Apache only gets involved in URLs it generates itself. What is often misunderstood is the nature of what is in the address bar of the browser. The address bar contains what the browser requested. It cannot be changed by the content of a webserver's response other than when the response is "retry the request with this URL in stead". So the only way to change the adres bar to change is to send a redirect. There are a few cases where Apache will do this for you automatically. One such case is when a user requests a directory, and apache generates a directory index. This is the case that is mentioned in the docs you found. However, in this case you will need to force a redirect yourself. Krist -- krist.vanbesien@gmail.com krist@vanbesien.org Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? --000e0cd1d55a2b8a750464d3b843 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Mar 11, 2009 at 4:35 AM, Charles= Sprickman <spork@bw= ay.net> wrote:

OK. =A0That makes perfect sense. =A0At this point, my main concern is actua= lly understanding how this works. =A0When I was reading the docs on "U= seCanonicalName" (http://httpd.apache.org/docs/2.2/= mod/core.html#usecanonicalname) I noticed that reference is made to &qu= ot;self-referential" URLs. =A0Under what conditions does Apache then g= et involved and alter the URL? =A0Just redirects? =A0I understand a common = redirect is just adding a trailing slash when the user does not supply it. = =A0What are some other common cases? Who's call is it when a simple sta= tic site uses non-absolute URLs for all the links? =A0Is the browser buildi= ng the fully-qualified links or apache (I suspect the former)?

=A0
Apache only gets involved in URLs it generates itsel= f.

What is often misunderstood is the nature of what is in the addr= ess bar of the browser. The address bar contains what the browser requested= .=A0 It cannot be changed by the content of a webserver's response othe= r than when the response is "retry the request with this URL in stead&= quot;. So the only way to change the adres bar to change is to send a redir= ect.
There are a few cases where Apache will do this for you automatically. One = such case is when a user requests a directory, and apache generates a direc= tory index. This is the case that is mentioned in the docs you found.
However, in this case you will need to force a redirect yourself.

K= rist


--
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of = conversation.
Q: What's wrong with top-posting?
A: Top-posting.Q: What's the biggest scourge on plain text email discussions?
--000e0cd1d55a2b8a750464d3b843--