Date: Tue, 13 Feb 2001 03:11:29 +0100 From: Boris <koester@x-itec.de> To: "Tyler K McGeorge" <treznor@sunflower.com> Cc: questions@FreeBSD.ORG Subject: Re: Apache Question Message-ID: <128374071906.20010213031129@x-itec.de> In-Reply-To: <000801c08764$eb9713c0$103b7c18@palisor.yi.org> References: <000801c08764$eb9713c0$103b7c18@palisor.yi.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
<VirtualHost x-itec.dyndns.org:80>
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
</VirtualHost>
<VirtualHost 192.168.0.99>
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
</VirtualHost>
<VirtualHost 192.168.0.99>
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
</VirtualHost>
--
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?128374071906.20010213031129>
