Gentoo Archives: gentoo-user

From: Paul Raison <paul@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] Apache Virtual Host
Date: Thu, 28 Jul 2005 21:30:09
Message-Id: 42E94D3B.2010108@raison.org.uk
In Reply to: [gentoo-user] [OT] Apache Virtual Host by q-parser
1 To use virtual hosting with Apache2, you should them up in the
2 /etc/apache2/conf/vhosts/vhosts.conf file. Then you need to add this
3 directive within the Virtual Host block:-
4
5 <directory /usr/local/koha/opac/cgi-bin/>
6 Order allow,deny
7 Allow from all
8 </directory>
9
10 Repeat this section for /usr/local/koha/opac/htdocs/
11
12 This should get it working.
13
14 Paul
15
16 q-parser wrote:
17
18 > I've got a problem with setting up a virtual host for my "koha"
19 > perl-based application. It has its own httpd.conf which I include into
20 > apache2.conf using Include directive. It looks like this:
21 >
22 > #####
23 > Listen 85
24 >
25 > <VirtualHost Gentoo-drak:85>
26 > ServerAdmin quickparser@×××××××.sk
27 > DocumentRoot /usr/local/koha/opac/htdocs
28 > ServerName Gentoo-drak
29 > ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/
30 > Redirect permanent index.html
31 > http://Gentoo-drak:85/cgi-bin/koha/opac-main.pl
32 > ErrorLog /usr/local/koha/log/opac-error_log
33 > TransferLog /usr/local/koha/log/opac-access_log
34 > SetEnv PERL5LIB "/usr/local/koha/intranet/modules"
35 > SetEnv KOHA_CONF "/etc/koha.conf"
36 >
37 > </VirtualHost>
38 > ####
39 > Gentoo-drak is a name of my machine. Ok, when I try to connect to
40 > localhost using port 85, I get this error message: You don't have
41 > permission to access / on this server. I don't understand because
42 > DocumentRoot dir "/usr/local/koha/opac/htdocs" has 775 permissions.
43 >
44 > Could anybody advise me how to get this to work or tip me out some
45 > tutorial on virtual hosting?
46 > Thanks
47
48 --
49 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] [OT] Apache Virtual Host q-parser <quickparser@×××××.com>