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 1E1uyC-0000Of-QP for garchives@archives.gentoo.org; Sun, 07 Aug 2005 23:54:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j77NrCIg026631; Sun, 7 Aug 2005 23:53:12 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j77NnTXb003819 for ; Sun, 7 Aug 2005 23:49:30 GMT Received: by zproxy.gmail.com with SMTP id x7so616378nzc for ; Sun, 07 Aug 2005 16:49:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=pjpMgW4j+66by820e8Eu3jtWpk0WnRByPBp15WTSQIOqy7WyozrPEZRQ6ypEAGZbMqYWrsi/EVb6Qwq0LNW6qdbuYSA3crvxMdidmyN/FIk3mcCyRayOi0X7ZZonvfEgI4l6UgcGTT/3SOMMa2HWGdoU9K4lZ5UEHc3FlDDTD2g= Received: by 10.36.178.17 with SMTP id a17mr1929190nzf; Sun, 07 Aug 2005 16:49:42 -0700 (PDT) Received: by 10.36.9.6 with HTTP; Sun, 7 Aug 2005 16:49:42 -0700 (PDT) Message-ID: <558b73fb0508071649709948ae@mail.gmail.com> Date: Sun, 7 Aug 2005 19:49:42 -0400 From: Michael Crute To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] Apache Virtual Host In-Reply-To: <42F67B59.40209@gmail.com> 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 Content-Type: multipart/alternative; boundary="----=_Part_3359_2641464.1123458582538" References: <42E93ECF.20506@gmail.com> <42E94D3B.2010108@raison.org.uk> <42F67B59.40209@gmail.com> X-Archives-Salt: 04d303e8-81ef-4910-93d4-188766139ce6 X-Archives-Hash: b5773e1eaee3873c5642637a3559c13e ------=_Part_3359_2641464.1123458582538 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Try this... 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=20 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" Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all On 8/7/05, q-parser wrote: >=20 > Thanks for help, however, it didn't work. I'm still getting 403 - You > don't have permission to access / on this server. > I think it's not necessary to define virtual hosts in vhosts.conf as it > is, to my knowledge, included to apache2.conf, so does my config. Any > other suggestions for this? This is getting rather pushy. >=20 > Paul Raison wrote: >=20 > > 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 > > > > >=20 > -- > gentoo-user@gentoo.org mailing list >=20 >=20 --=20 ________________________________ Michael E. Crute Software Developer SoftGroup Development Corporation "In a world without walls and fences, who needs windows and gates?" ------=_Part_3359_2641464.1123458582538 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Try this...

<VirtualHost Gentoo-drak: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_l= og

   SetEnv PERL5LIB "/usr/local/koha/intranet/modules"   SetEnv KOHA_CONF "/etc/koha.conf"

   <Directory "/usr/local/koha/opac/htdocs">
      Options Indexes FollowSymLinks
      AllowOverride None
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>


On 8/7/05, q-parser <quickparse= r@gmail.com> wrote:
Thanks for help, however, it didn't work. I'm still getting 403 - You
do= n't have permission to access / on this server.
I think it's not necessa= ry to define virtual hosts in vhosts.conf as it
is, to my knowledge, inc= luded to=20 apache2.conf, so does my config. Any
other suggestions for this? This is= getting rather pushy.

Paul Raison wrote:

> 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:-
>
> <dire= ctory /usr/local/koha/opac/cgi-bin/>
> Order allow,deny
> Al= low from all
> </directory>
>
> 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 applicatio= n. It has its own=20 httpd.conf which I include
>> into apache2.conf using Include dire= ctive. It looks like this:
>>
>> #####
>> Listen= 85
>>
>> <VirtualHost Gentoo-drak:85>
>>&= nbsp;  ServerAdmin=20 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/k= oha/log/opac-error_log
>>   TransferLog /usr/local/koha/log/opac-access_log>>   SetEnv PERL5LIB "/usr/local/koha/intranet/module= s"
>>   SetEnv KOHA_CONF "/etc/koha.conf"=
>>
>> </VirtualHost>
>> ####
>> 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 7= 75 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




--
________________________________ Michael E. Crute
Software Developer
SoftGroup Development Corporation=

"In a world without walls and fences, who needs windows and ga= tes?" ------=_Part_3359_2641464.1123458582538-- -- gentoo-user@gentoo.org mailing list