From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 16:36:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E33F16A474 for ; Wed, 9 Jan 2008 16:36:21 +0000 (UTC) (envelope-from jhorne@dfwlp.org) Received: from pollux.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id 22C1A13C4E7 for ; Wed, 9 Jan 2008 16:36:21 +0000 (UTC) (envelope-from jhorne@dfwlp.org) Received: from citation.local ([192.168.125.142]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id m09GaH1Z077489; Wed, 9 Jan 2008 10:36:17 -0600 (CST) (envelope-from jhorne@dfwlp.org) Message-ID: <4784F801.7050107@dfwlp.org> Date: Wed, 09 Jan 2008 10:36:17 -0600 From: Jonathan Horne User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: zbigniew szalbot , freebsd-questions@freebsd.org References: <4784EF9C.8040307@szalbot.homedns.org> <8d23ec860801090803v53b19441h37f75b03324a5adf@mail.gmail.com> <4784F23A.9060301@szalbot.homedns.org> <4784F558.4030107@dfwlp.com> In-Reply-To: <4784F558.4030107@dfwlp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on pollux.dfwlp.com Cc: Subject: Re: apache virtual directories / VirtualHost overlap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2008 16:36:21 -0000 Jonathan Horne wrote: > zbigniew szalbot wrote: >>> > >>> > So I defined: >>> > >>> > NameVirtualHost 83.19.156.210 >>> > >>> > >>> > ServerAdmin webmaster@dummy-host.example.com >>> > DocumentRoot /usr/local/www/data/ >>> > ServerName lists.lc-words.com >>> > ErrorLog /var/log/httpd-error.log >>> > CustomLog /var/log/httpd-access.log common >>> > >>> > >>> > >>> > ServerAdmin webmaster@dummy-host.example.com >>> > DocumentRoot /usr/local/www/data/blog/ >>> > ServerName blog.lc-words.com >>> > ErrorLog /var/log/httpd-error.log >>> > CustomLog /var/log/httpd-access.log common >>> > >>> > also, try this setting up a vhost for the actual host, then 'child' vhosts for the different sites that you want to host. an example: # Virtual Hosts NameVirtualHost *:80 # VH for actualhost.example.com ServerName actualhost.example.com UserDir disable DocumentRoot /usr/local/www/apache22/data/ ErrorLog /var/log/httpd/error.log CustomLog /var/log/httpd/actualhost.example.com_log combined # VH for blog ServerName blog.example.com UserDir disable DocumentRoot /usr/local/www/blog ErrorLog /var/log/httpd/error.log CustomLog /var/log/httpd/blog.example.com_log combined # VH for lists ServerName lists.example.com ServerAlias lists.example.com DocumentRoot /usr/local/www/lists ErrorLog /var/log/httpd/error.log CustomLog /var/log/httpd/lists.example.com_log combined i believe the specifying ServerName is critically important to sucessfully wrangling all your vhosts into the proper DocumentRoot(s). hth, -- Jonathan Horne http://www.dfwlp.org jhorne@dfwlp.org