From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DyFxB-0006Cx-ET for garchives@archives.gentoo.org; Thu, 28 Jul 2005 21:30:09 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6SLSiPW018058; Thu, 28 Jul 2005 21:28:44 GMT Received: from linserve.raison.org.uk (host-84-9-164-65.bulldogdsl.com [84.9.164.65]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6SLNh3j015148 for ; Thu, 28 Jul 2005 21:23:44 GMT Received: from localhost (linserve.raison.org.uk [127.0.0.1]) by linserve.raison.org.uk (Postfix) with ESMTP id 96AB15DDF for ; Thu, 28 Jul 2005 22:24:17 +0100 (BST) Received: from linserve.raison.org.uk ([127.0.0.1]) by localhost (linserve [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32692-07 for ; Thu, 28 Jul 2005 22:24:12 +0100 (BST) Received: from [192.168.0.2] (unknown [192.168.0.2]) by linserve.raison.org.uk (Postfix) with ESMTP id DF68D5DDD for ; Thu, 28 Jul 2005 22:24:12 +0100 (BST) Message-ID: <42E94D3B.2010108@raison.org.uk> Date: Thu, 28 Jul 2005 22:25:15 +0100 From: Paul Raison User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050725) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] Apache Virtual Host References: <42E93ECF.20506@gmail.com> In-Reply-To: <42E93ECF.20506@gmail.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at raison.org.uk X-Archives-Salt: c2b86ccb-970d-4d83-8aeb-6d9e5fdfd3c0 X-Archives-Hash: 25be8d48e75c4dace13163b084537ead To use virtual hosting with Apache2, you should them up in the /etc/apache2/conf/vhosts/vhosts.conf file. Then you need to add this directive within the Virtual Host block:- Order allow,deny Allow from all Repeat this section for /usr/local/koha/opac/htdocs/ This should get it working. Paul q-parser wrote: > I've got a problem with setting up a virtual host for my "koha" > perl-based application. It has its own httpd.conf which I include into > apache2.conf using Include directive. It looks like this: > > ##### > Listen 85 > > > ServerAdmin quickparser@centrum.sk > DocumentRoot /usr/local/koha/opac/htdocs > ServerName Gentoo-drak > ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/ > Redirect permanent index.html > http://Gentoo-drak:85/cgi-bin/koha/opac-main.pl > ErrorLog /usr/local/koha/log/opac-error_log > TransferLog /usr/local/koha/log/opac-access_log > SetEnv PERL5LIB "/usr/local/koha/intranet/modules" > SetEnv KOHA_CONF "/etc/koha.conf" > > > #### > Gentoo-drak is a name of my machine. Ok, when I try to connect to > localhost using port 85, I get this error message: You don't have > permission to access / on this server. I don't understand because > DocumentRoot dir "/usr/local/koha/opac/htdocs" has 775 permissions. > > Could anybody advise me how to get this to work or tip me out some > tutorial on virtual hosting? > Thanks -- gentoo-user@gentoo.org mailing list