Gentoo Archives: gentoo-user

From: Michael Crute <mcrute@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] Apache Virtual Host
Date: Sun, 07 Aug 2005 23:54:21
Message-Id: 558b73fb0508071649709948ae@mail.gmail.com
In Reply to: Re: [gentoo-user] [OT] Apache Virtual Host by q-parser
1 Try this...
2
3 <VirtualHost Gentoo-drak:85>
4 ServerAdmin quickparser@×××××××.sk
5 DocumentRoot /usr/local/koha/opac/htdocs
6 ServerName Gentoo-drak
7
8 ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/
9 Redirect permanent index.html
10 http://Gentoo-drak:85/cgi-bin/koha/opac-main.pl<http://gentoo-drak:85/cgi-bin/koha/opac-main.pl>
11
12 ErrorLog /usr/local/koha/log/opac-error_log
13 TransferLog /usr/local/koha/log/opac-access_log
14
15 SetEnv PERL5LIB "/usr/local/koha/intranet/modules"
16 SetEnv KOHA_CONF "/etc/koha.conf"
17
18 <Directory "/usr/local/koha/opac/htdocs">
19 Options Indexes FollowSymLinks
20 AllowOverride None
21 Order allow,deny
22 Allow from all
23 </Directory>
24 </VirtualHost>
25
26
27 On 8/7/05, q-parser <quickparser@×××××.com> wrote:
28 >
29 > Thanks for help, however, it didn't work. I'm still getting 403 - You
30 > don't have permission to access / on this server.
31 > I think it's not necessary to define virtual hosts in vhosts.conf as it
32 > is, to my knowledge, included to apache2.conf, so does my config. Any
33 > other suggestions for this? This is getting rather pushy.
34 >
35 > Paul Raison wrote:
36 >
37 > > To use virtual hosting with Apache2, you should them up in the
38 > > /etc/apache2/conf/vhosts/vhosts.conf file. Then you need to add this
39 > > directive within the Virtual Host block:-
40 > >
41 > > <directory /usr/local/koha/opac/cgi-bin/>
42 > > Order allow,deny
43 > > Allow from all
44 > > </directory>
45 > >
46 > > Repeat this section for /usr/local/koha/opac/htdocs/
47 > >
48 > > This should get it working.
49 > >
50 > > Paul
51 > >
52 > > q-parser wrote:
53 > >
54 > >> I've got a problem with setting up a virtual host for my "koha"
55 > >> perl-based application. It has its own httpd.conf which I include
56 > >> into apache2.conf using Include directive. It looks like this:
57 > >>
58 > >> #####
59 > >> Listen 85
60 > >>
61 > >> <VirtualHost Gentoo-drak:85>
62 > >> ServerAdmin quickparser@×××××××.sk
63 > >> DocumentRoot /usr/local/koha/opac/htdocs
64 > >> ServerName Gentoo-drak
65 > >> ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/
66 > >> Redirect permanent index.html
67 > >> http://Gentoo-drak:85/cgi-bin/koha/opac-main.pl
68 > >> ErrorLog /usr/local/koha/log/opac-error_log
69 > >> TransferLog /usr/local/koha/log/opac-access_log
70 > >> SetEnv PERL5LIB "/usr/local/koha/intranet/modules"
71 > >> SetEnv KOHA_CONF "/etc/koha.conf"
72 > >>
73 > >> </VirtualHost>
74 > >> ####
75 > >> Gentoo-drak is a name of my machine. Ok, when I try to connect to
76 > >> localhost using port 85, I get this error message: You don't have
77 > >> permission to access / on this server. I don't understand because
78 > >> DocumentRoot dir "/usr/local/koha/opac/htdocs" has 775 permissions.
79 > >>
80 > >> Could anybody advise me how to get this to work or tip me out some
81 > >> tutorial on virtual hosting?
82 > >> Thanks
83 > >
84 > >
85 >
86 > --
87 > gentoo-user@g.o mailing list
88 >
89 >
90
91
92 --
93 ________________________________
94 Michael E. Crute
95 Software Developer
96 SoftGroup Development Corporation
97
98 "In a world without walls and fences, who needs windows and gates?"

Replies

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