Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 92381 invoked from network); 28 Jan 2008 17:47:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jan 2008 17:47:16 -0000 Received: (qmail 99950 invoked by uid 500); 28 Jan 2008 17:46:57 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 99932 invoked by uid 500); 28 Jan 2008 17:46:57 -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 99921 invoked by uid 99); 28 Jan 2008 17:46:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2008 09:46:56 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of uhlar@fantomas.sk designates 195.168.3.66 as permitted sender) Received: from [195.168.3.66] (HELO fantomas.fantomas.sk) (195.168.3.66) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2008 17:46:40 +0000 Received: from fantomas.fantomas.sk (uhlar@localhost [127.0.0.1]) by fantomas.fantomas.sk (8.13.8/8.13.8/Debian-3) with ESMTP id m0SHkXNW013895 for ; Mon, 28 Jan 2008 18:46:33 +0100 Received: (from uhlar@localhost) by fantomas.fantomas.sk (8.13.8/8.13.8/Submit) id m0SHkXBR013894 for users@httpd.apache.org; Mon, 28 Jan 2008 18:46:33 +0100 X-Authentication-Warning: fantomas.fantomas.sk: uhlar set sender to uhlar@fantomas.sk using -f Date: Mon, 28 Jan 2008 18:46:33 +0100 From: Matus UHLAR - fantomas To: users@httpd.apache.org Message-ID: <20080128174633.GA13086@fantomas.sk> Mail-Followup-To: users@httpd.apache.org References: <001e01c85923$2a9d79f0$c2a2b451@teddy> <31851.80.168.22.106.1200586638.squirrel@mail.pc-tony.com> <003201c85932$e19319d0$c2a2b451@teddy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003201c85932$e19319d0$c2a2b451@teddy> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] redirections On 17.01.08 19:59, Octavian Rasnita wrote: > Ok, I understand that I could use ServerAlias for having 2 or more > addresses for the same virtualhost, but I don't understand how I can't do > what I want without redirecting. > > I want the url > /maestro > > to be redirected to: > /static/maestro/ > > no matter which is the current host name. Redirect /maestro/ /static/maestro/ in section. note the trailing slashes, otherwise you'd redirect /maestroXYZ to /static/maestroXYZ (unless it's what you want) > ...something like: > > Redirect /maestro $HOSTNAME/static/maestro/ > > where $HOSTNAME would get the current host... if you want to keep the same hostname, set "UseCanonicalName off" or use two virtual hosts. However I'd advise not to use multiple hosts for the same content, unless you really must, and leave apache redirect to the ServerName -- Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Windows 2000: 640 MB ought to be enough for anybody --------------------------------------------------------------------- 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