Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] [OT] Apache Virtual Host Michael Crute <mcrute@×××××.com>