From owner-freebsd-questions Mon Feb 12 18:11:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.webmailer.de (natmail2.webmailer.de [192.67.198.65]) by hub.freebsd.org (Postfix) with ESMTP id 959D637B4EC for ; Mon, 12 Feb 2001 18:11:41 -0800 (PST) Received: from bastion.localhost (p3E9E17A6.dip.t-dialin.net [62.158.23.166]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id DAA01935; Tue, 13 Feb 2001 03:11:38 +0100 (MET) Received: from master ([192.168.0.1]) by bastion.localhost (8.11.1/8.11.1) with ESMTP id f1D37tl00525; Tue, 13 Feb 2001 03:07:55 GMT Date: Tue, 13 Feb 2001 03:11:29 +0100 From: Boris X-Mailer: The Bat! (v1.48f) Personal Reply-To: Boris X-Priority: 3 (Normal) Message-ID: <128374071906.20010213031129@x-itec.de> To: "Tyler K McGeorge" Cc: questions@FreeBSD.ORG Subject: Re: Apache Question In-reply-To: <000801c08764$eb9713c0$103b7c18@palisor.yi.org> References: <000801c08764$eb9713c0$103b7c18@palisor.yi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello Tyler, Friday, January 26, 2001, 7:55:08 AM, you wrote: TKM> Hi, I'm running an Apache server. My box has two domain names. Is it possible to make Apache load a different Htdocs directory when one of the domain names is accessed? Like let's say I have TKM> 1.org and 2.org. 1.org is default. So, when you type in 1.org, it goes to /usr/local/www/data/, but when 2.org is typed into browser, /home/2org/public_html/ is accessed? I'm lost, please find TKM> me. :P TKM> Ty Its possible to route the directory to another place but its possible that you will get some trouble if you are not in the default path for your www documents. Maybe it helps you. Here is an example, just for the archive NameVirtualHost 192.168.0.99 ServerAdmin koester@x-itec.de DocumentRoot /www/htdocs/xitec_cms/ ScriptAlias /cgi-bin/ /www/htdocs/cgi-bin ErrorLog logs/error.www.x-itec.de.log php_admin_value include_path ".:/usr/xitec_cms" Options Indexes FollowSymLinks MultiViews ExecCGI ServerAdmin koester@x-itec.de ServerName www.x-itec2.de DocumentRoot /www/htdocs/xitec_cms/ ScriptAlias /cgi-bin/ /usr/xitec_cms/ ErrorLog logs/error.www.x-itec.de.log php_admin_value include_path ".:/root/cmsr1/www.xyz.de/xitec_cms/" ServerAdmin koester@x-itec.de ServerName www.x-itec3.de DocumentRoot /root/cmsr1/www.xyz.de/xitec_cms ScriptAlias /cgi-bin/ /www/htdocs/cgi-bin ErrorLog logs/error.www.x-itec.de.log -- Boris [MCSE, CNA] ................................................................... X-ITEC : Consulting * Programming * Net-Security * Crypto-Research ........: [PRIVATE ADDRESS:] : Boris Köster eMail koester@x-itec.de http://www.x-itec.de : Grüne 33-57368 Lennestadt Germany Tel: +49 (0)2721 989400 : 101 PERFECTION - SECURITY - STABILITY - FUNCTIONALITY ........:.......................................................... Everything I am writing is (c) by Boris Köster and may not be rewritten or distributed in any way without my permission. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message