Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 11320 invoked from network); 24 May 2009 16:08:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 May 2009 16:08:18 -0000 Received: (qmail 87528 invoked by uid 500); 24 May 2009 16:08:28 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 87457 invoked by uid 500); 24 May 2009 16:08:28 -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 87448 invoked by uid 99); 24 May 2009 16:08:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 May 2009 16:08:28 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.60.130.153] (HELO smtpauth.surewest.net) (66.60.130.153) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 May 2009 16:08:16 +0000 Received: from blacklamb.mykitchentable.net (unknown [69.62.230.77]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtpauth.surewest.net (Postfix) with ESMTP id BE9F59BF89 for ; Sun, 24 May 2009 09:03:04 -0700 (PDT) Received: from [127.0.0.1] (bigdaddy.mykitchentable.net [192.168.1.3]) by blacklamb.mykitchentable.net (Postfix) with ESMTPA id D116C164B3B for ; Sun, 24 May 2009 09:07:52 -0700 (PDT) Message-ID: <4A1970D1.3000202@mykitchentable.net> Date: Sun, 24 May 2009 09:07:45 -0700 From: Drew Tomlinson User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: users@httpd.apache.org References: <4A1814B7.6020806@mykitchentable.net> <4A1826A9.50800@walterisookeensufferukker.nl> In-Reply-To: <4A1826A9.50800@walterisookeensufferukker.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 090524-0, 05/24/2009), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Domain Masking (I think?) Davide Bianchi wrote: > Drew Tomlinson wrote: > >> The two URLs are: >> >> http://drew.mykitchentable.net/fatblog >> http://fatblog.freehealthupdates.com >> > > The first one is not a domain name, but a domain name + a subdir, that > make me think that you already have some sort of rewrite or redirect > rule that changes your URL adding the 'fatblog' bit. > Thanks for your reply. There is no rewrite or redirect. The "/fatblog" is an "Alias" defined in the drew.mykitchentable.net virtual host container. Here's the specific line: Alias /fatblog "/path/to/wordpress" Thus http://drew.mykitchentable.net/fatblog is just the URL to my WordPress installation. There is nothing being done by Apache. > You'll need to check that and eventually add something similar to the > other vhost, unless is in an .htaccess and is not added by your webpress > installation. > > For the rest, if you have a default configuration of Apache, the > hostname that is displayed is the same that the user typed in the > address bar. See the 'UseCanonicalName' options in the docs. > I looked at the UseCanonicalName directive but it doesn't seem to be the right answer for me. My WordPress installation is set up as http://drew.mykitchentable.net/fatblog so all the links on the WordPress pages point to http://drew/mykitchentable.net/fatblog/whatever. Thus if one enters the WordPress site with URL http://drew.mykitchentable.net/fatblog and begins navigating through the site, http://drew/mykitchentable.net/fatblog/whatever is always displayed in the browser address bar. This is exactly what I expect and want. Now I also want to have one be able to access the WordPress installation via http://fatblog.freehealthupdates.com. Thus I have configured a virtual host with these relevant directives: ServerName fatblog.freehealthupdates.com DocumentRoot /path/to/wordpress With this setup, I can enter the WordPress installation via http://fatblog.freehealthupdates.com. However because the WordPress installation is setup as http://drew.mykitchentable.net/fatblog, all the links on the page point to http://drew.mykitchentable.net/fatblog/whatever. Thus clicking on any link changes the address in the browser's address bar from http://fatblog.freehealthupdates.com to http://drew.mykitchentable.net/fatblog/whatever. So I guess my question is, "If I click on a link named http://drew.mykitchentable.net/fatblog/whatever, how can I make the address displayed in the browsers address bar show http://fatblog.freehealthupdates.com/whatever?". Is this possible and if so, how? These are all working links so you can actually try them if you wish. Thanks for your help! Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com --------------------------------------------------------------------- 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