Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 24970 invoked from network); 2 Apr 2007 17:50:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2007 17:50:32 -0000 Received: (qmail 76452 invoked by uid 500); 2 Apr 2007 17:50:27 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 76442 invoked by uid 500); 2 Apr 2007 17:50:27 -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 76431 invoked by uid 99); 2 Apr 2007 17:50:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 10:50:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.49.250] (HELO web52003.mail.re2.yahoo.com) (206.190.49.250) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 02 Apr 2007 10:50:18 -0700 Received: (qmail 13488 invoked by uid 60001); 2 Apr 2007 17:49:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RCcV17bt5mLdvOGW1STffJCoW+cL5WFc54T3PVJXqSt7LMI4/Ii+vgDWu6gbab18KY3YWCVdB7Wfu1yqNnjrcexDgvscUseYYToUJo0ZxMxILtd6OXsqWy4vwidB0g52xulqaQ3JFppgFK7DdSmmENRKLaKqMTio0RlKaBq4rwU= ; Message-ID: <20070402174956.13484.qmail@web52003.mail.re2.yahoo.com> X-YMail-OSG: 02mWUjsVM1nTOqe0c3IgbJVAC3yAzytYXQuBW19W3WBmiZSDz6TR_uJsAQhUhpqMX4jSUzLIGkuEP8cE.EQUclzSH9z_wLfZ_xcBVcpmJCSsej_mBZqVKz.MLX_s2A-- Received: from [158.121.143.112] by web52003.mail.re2.yahoo.com via HTTP; Mon, 02 Apr 2007 10:49:56 PDT Date: Mon, 2 Apr 2007 10:49:56 -0700 (PDT) From: Dan McDonald To: users@httpd.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] relative links get broken when adding vhost Hi, I work at a large University and im stuck on this apache problem. Its best explained with an example: I have a website at www.domain.edu/dept/sci/bio/frogs/green/poison and the index.html file has links like ../../frogs/eyes.gif /style/style.css ../../../images/icon.jpg and images/wart.jpg User wants biofrogs.domain.edu subdomain, and would like it pointed to the /dept/sci/bio/frogs/green/poison directory. A VirtualHost entry makes that the new top level directory. Now there's problems. biofrogs.domain.edu/style/style.css and www.domain.edu/style/style.css are pointing to completely different files. ../../../images/icon.jpg wouldnt even be accessible on the subdomain unless you use a absolute link etc etc. Because the DocumentRoot changed obviously all these relative links are broken. Is there a way to fix this other than writing the html, or making symlinks in the new DocRoot? I really wanted mod_rewrite to match a "../../file" request, but it just matches the file it points to. Any ideas would be great! Thanks Dan ____________________________________________________________________________________ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 --------------------------------------------------------------------- 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