public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: q-parser <quickparser@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] Apache Virtual Host
Date: Sat, 03 Sep 2005 21:55:43 +0200	[thread overview]
Message-ID: <4319FFBF.8020104@gmail.com> (raw)
In-Reply-To: <558b73fb05080719536b72960a@mail.gmail.com>

I have a different problem now. I've migrated the whole program to my 
server, but it does not work there. I set up different ports for it and 
server does not listen to them, though I have Listen directives. I'm 
getting time-outs, but I don't know why. Does anybody have any idea why 
apache does not listen to my my ports, no matter what they are? Thanks

Michael Crute wrote:

> Just a note for the future. Whenever you create a virual host that 
> points to a directory you must create a directory container inside of 
> the virual host container that sets up the permissions for the 
> directory otherwise your will always get a 403 error.
>
> -Mike
>
> On 8/7/05, *q-parser* <quickparser@gmail.com 
> <mailto:quickparser@gmail.com>> wrote:
>
>     Yes, that's it! Many thanks...I hope, there'll be no other problems.
>
>     Michael Crute wrote:
>
>     > Try this...
>     >
>     > <VirtualHost Gentoo-drak:85>
>     >    ServerAdmin quickparser@centrum.sk
>     <mailto:quickparser@centrum.sk> <mailto:quickparser@centrum.sk
>     <mailto: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
>     > < 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"
>     >
>     >    <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* <quickparser@gmail.com
>     <mailto:quickparser@gmail.com>
>     > <mailto: quickparser@gmail.com <mailto:quickparser@gmail.com>>>
>     wrote:
>     >
>     >     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.
>     >
>     >     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:-
>     >     >
>     >     > <directory /usr/local/koha/opac/cgi-bin/>
>     >     > Order allow,deny
>     >     > Allow 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 application. It has its own httpd.conf which I
>     include
>     >     >> into apache2.conf using Include directive. It looks like
>     this:
>     >     >>
>     >     >> #####
>     >     >> Listen 85
>     >     >>
>     >     >> <VirtualHost Gentoo-drak:85>
>     >     >>   ServerAdmin quickparser@centrum.sk
>     <mailto:quickparser@centrum.sk>
>     >     <mailto:quickparser@centrum.sk <mailto: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"
>     >     >>
>     >     >> </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 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 <mailto:gentoo-user@gentoo.org>
>     <mailto:gentoo-user@gentoo.org <mailto: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 gates?"
>
>
>     --
>     gentoo-user@gentoo.org <mailto: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 gates?" 


-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2005-09-03 20:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28 20:23 [gentoo-user] [OT] Apache Virtual Host q-parser
2005-07-28 21:25 ` Paul Raison
2005-08-07 21:21   ` q-parser
2005-08-07 23:49     ` Michael Crute
2005-08-08  0:39       ` q-parser
2005-08-08  2:53         ` Michael Crute
2005-08-08 13:01           ` A. Khattri
2005-09-03 19:55           ` q-parser [this message]
2005-09-03 20:13             ` Michael Crute
2005-09-03 23:09               ` q-parser
2005-09-04  0:06                 ` Michael Crute
2005-09-04  2:13                   ` q-parser
2005-09-05  2:24                     ` A. Khattri
2005-09-05  3:46                       ` Michael Crute

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4319FFBF.8020104@gmail.com \
    --to=quickparser@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox