Re: [gentoo-user] [OT] Apache Virtual Host

2005-09-04 Thread A. Khattri
On Sun, 4 Sep 2005, q-parser wrote:

 Unfortunately, it was no help :( I'll try to reinstall Koha (that's what
 I'm trying to get working) and see if the problem persists. But I
 strongly believe that there's problem with apache or vhost.

Sorry to be blunt, but it really sounds like you dont really know what
you're doing. You really need to read the docs on how to setup virtual
hosts. There is nothing wrong with apache.


-- 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] Apache Virtual Host

2005-09-04 Thread Michael Crute
On 9/4/05, A. Khattri [EMAIL PROTECTED] wrote:
Sorry to be blunt, but it really sounds like you dont really know whatyou're doing. You really need to read the docs on how to setup virtual
hosts. There is nothing wrong with apache.
Hmm... yes... I will bite my tongue before I make another troll comment. It's all about learning if you don't wanna help perhaps you should quietly observe the list and not insult people who are having problems. Just a thought.


To Khattri's point, however, there is nothing wrong with Apache. I have run MANY Apache servers and have never had any showstopper issues. I have also read about and implemented many of the major features of Apache in many production environments which also helps. Again to Khattri's point RTFM it really does help. 


In any case if you would like to send me all your config files for Apache (the main httpd.conf and all the included files) off the list I will poke about through them and see if I can offer any other advice. If you don't wish to do that then I would suggest you start with a nice clean Apache (stock config files) and try your webapp install again. Don't over customize from the beginning, take it slow, make it work in baby steps, then go crazy! And feel free to ask on the lists... most people here with some knowledge of the software in question will try to help you out.


-Mike-- Michael E. CruteSoftware DeveloperSoftGroup Development CorporationLinux, because reboots are for installing hardware.In a world without walls and fences, who needs windows and gates? 



Re: [gentoo-user] [OT] Apache Virtual Host

2005-09-03 Thread q-parser
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* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
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* [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
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 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
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

Re: [gentoo-user] [OT] Apache Virtual Host

2005-09-03 Thread Michael Crute
On 9/3/05, q-parser [EMAIL PROTECTED] wrote:
I have a different problem now. I've migrated the whole program to myserver, but it does not work there. I set up different ports for it andserver does not listen to them, though I have Listen directives. I'mgetting 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? ThanksCan you send me your config file or the relevant parts from it?

-Mike-- Michael E. CruteSoftware DeveloperSoftGroup Development CorporationLinux, because reboots are for installing hardware.In a world without walls and fences, who needs windows and gates?


Re: [gentoo-user] [OT] Apache Virtual Host

2005-09-03 Thread q-parser




Michael Crute wrote:
On 9/3/05, q-parser [EMAIL PROTECTED]
wrote:
  
  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


  
  
  
Can you send me your config file or the relevant parts from it?
  
-Mike
  
-- 

Michael E. Crute
Software Developer
SoftGroup Development Corporation
  
Linux, because reboots are for installing hardware.
"In a world without walls and fences, who needs windows and gates?"

Here it is:

# 

Listen 100
Listen 200

# NameVirtualHost is used by one of the optional configurations
detailed below
# Please make sure this line is correct before uncommenting.
# See http://httpd.apache.org/docs/vhosts/ for some guides.

#NameVirtualHost 11.22.33.44
#NameVirtualHost virtual:100

# KOHA's OPAC Configuration
VirtualHost virtual:100
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/local/koha/opac/htdocs
 ServerName virtual
 ServerPath /usr/local/
 ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/
 Redirect permanent index.html
http://virtual:100/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"
 Order allow,deny
 Allow from all
 AllowOverride None
 Options +Includes -FollowSymlinks -Indexes
 #Options Indexes FollowSymLinks
 AddHandler server-parsed .html
 /Directory
 Directory /usr/local/koha/opac/cgi-bin
 Order allow,deny
 Allow from all
 AllowOverride None
 Options +Includes -FollowSymLinks -Indexes
 #Options Indexes FollowSymLinks
 AddHandler server-parsed .html
 /Directory
/VirtualHost

# KOHA's INTRANET Configuration
VirtualHost virtual:200
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/local/koha/intranet/htdocs
 ServerName virtual
 ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/"
 Redirect permanent index.html
http://virtual:200/cgi-bin/koha/mainpage.pl
 ErrorLog /usr/local/koha/log/koha-error_log
 TransferLog /usr/local/koha/log/koha-access_log
 SetEnv PERL5LIB "/usr/local/koha/intranet/modules"
 SetEnv KOHA_CONF "/etc/koha.conf"

 Directory "/usr/local/koha/intranet/htdocs"
 Order allow,deny
 Allow from all
 AllowOverride None
 Options +Includes -FollowSymlinks -Indexes
 #Options Indexes FollowSymLinks
 AddHandler server-parsed .html
 /Directory
 Directory /usr/local/koha/intranet/cgi-bin
 Order allow,deny
 Allow from all
 AllowOverride None
 Options +Includes -FollowSymLinks -Indexes
 #Options Indexes FollowSymLinks
 AddHandler server-parsed .html
 /Directory

/VirtualHost

# 

Those port numbers are chosen for explanatory reason, but I wouldn't
object if they worked ;) This whole file is Include-d into
apache2.conf. I emphasize that on my localhost, it works great, with
ports 85 and 8585 instead the two here. The curious thing is, that if I
want to use port 8585 here, the browser shows me main apache page (you
know, as if port 80 is used).
All I want to know is why apache does not 'want' to listen to the given
ports? I don't know, maybe it does, but I'm getting time-outs.





Re: [gentoo-user] [OT] Apache Virtual Host

2005-09-03 Thread Michael Crute
On 9/3/05, q-parser [EMAIL PROTECTED] wrote:

Those port numbers are chosen for explanatory reason, but I wouldn't
object if they worked ;) This whole file is Include-d into
apache2.conf. I emphasize that on my localhost, it works great, with
ports 85 and 8585 instead the two here. The curious thing is, that if I
want to use port 8585 here, the browser shows me main apache page (you
know, as if port 80 is used).

All I want to know is why apache does not 'want' to listen to the given
ports? I don't know, maybe it does, but I'm getting time-outs.




Well you really don't need those Listen
directives, those will cause the main server to listen on those ports
(thus the reason you see the main page). You DO need NameVirtualHost
directives for each port you want to vhost on though. Try adding
NameVirtualHosts for the ports and see if that works.

-Mike-- Michael E. CruteSoftware DeveloperSoftGroup Development CorporationLinux, because reboots are for installing hardware.In a world without walls and fences, who needs windows and gates?


Re: [gentoo-user] [OT] Apache Virtual Host

2005-09-03 Thread q-parser

Michael Crute wrote:

On 9/3/05, *q-parser* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Those port numbers are chosen for explanatory reason, but I
wouldn't object if they worked ;) This whole file is Include-d
into apache2.conf. I emphasize that on my localhost, it works
great, with ports 85 and 8585 instead the two here. The curious
thing is, that if I want to use port 8585 here, the browser shows
me main apache page (you know, as if port 80 is used).
All I want to know is why apache does not 'want' to listen to the
given ports? I don't know, maybe it does, but I'm getting time-outs.


Well you really don't need those Listen directives, those will cause 
the main server to listen on those ports (thus the reason you see the 
main page). You DO need NameVirtualHost directives for each port you 
want to vhost on though. Try adding NameVirtualHosts for the ports and 
see if that works.


-Mike

--

Michael E. Crute
Software Developer
SoftGroup Development Corporation

Linux, because reboots are for installing hardware.
In a world without walls and fences, who needs windows and gates? 


Unfortunately, it was no help :( I'll try to reinstall Koha (that's what 
I'm trying to get working) and see if the problem persists. But I 
strongly believe that there's problem with apache or vhost.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] Apache Virtual Host

2005-08-08 Thread A. Khattri
On Sun, 7 Aug 2005, 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.

Or, if all your vhosts roots will be under a certain folder, you can do
something like this (outside of any VirtualHost container):

Directory /home/*/html
AllowOverride All
Options MultiViews -Indexes Includes FollowSymLinks
Order allow,deny
Allow from all
/Directory

Directory /home/*/cgi-bin
 Options +ExecCGI -Includes -Indexes
 SetHandler cgi-script
/Directory

In my case, each site is under a folder under /home and consists of html
and cgi-bin folders.




 -Mike

 On 8/7/05, q-parser [EMAIL PROTECTED] 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 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   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* [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
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 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
 
 




-- 
heads down [Sun] adj.

 Concentrating, usually so heavily and
   for so long that everything outside the focus area is missed.  See
   also hack mode and larval stage, although this mode is
   hardly confined to fledgling hackers.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] Apache Virtual Host

2005-08-07 Thread q-parser
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 [EMAIL PROTECTED]
  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 mailing list



Re: [gentoo-user] [OT] Apache Virtual Host

2005-08-07 Thread Michael Crute
Try this...

VirtualHost Gentoo-drak:85
 ServerAdmin [EMAIL PROTECTED]
 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

 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 [EMAIL PROTECTED] wrote:
Thanks for help, however, it didn't work. I'm still getting 403 - Youdon't have permission to access / on this server.I think it's not necessary to define virtual hosts in vhosts.conf as itis, to my knowledge, included to 
apache2.conf, so does my config. Anyother 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 
[EMAIL PROTECTED] 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 mailing list-- 
Michael E. CruteSoftware DeveloperSoftGroup Development CorporationIn a world without walls and fences, who needs windows and gates?


Re: [gentoo-user] [OT] Apache Virtual Host

2005-08-07 Thread q-parser

Yes, that's it! Many thanks...I hope, there'll be no other problems.

Michael Crute wrote:


Try this...

VirtualHost Gentoo-drak:85
   ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   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* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
   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 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



Re: [gentoo-user] [OT] Apache Virtual Host

2005-08-07 Thread Michael Crute
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. 

-MikeOn 8/7/05, q-parser [EMAIL PROTECTED] wrote:
Yes, that's it! Many thanks...I hope, there'll be no other problems.Michael Crute wrote: Try this... VirtualHost Gentoo-drak:85ServerAdmin 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]DocumentRoot /usr/local/koha/opac/htdocsServerName Gentoo-drakScriptAlias /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.plErrorLog /usr/local/koha/log/opac-error_logTransferLog /usr/local/koha/log/opac-access_logSetEnv PERL5LIB /usr/local/koha/intranet/modules
SetEnv KOHA_CONF /etc/koha.confDirectory /usr/local/koha/opac/htdocs Options Indexes FollowSymLinks AllowOverride None Order allow,deny
 Allow from all/Directory /VirtualHost On 8/7/05, *q-parser* [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] 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 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  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 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-- Michael E. CruteSoftware Developer
SoftGroup Development CorporationIn a world without walls and fences, who needs windows and gates?


[gentoo-user] [OT] Apache Virtual Host

2005-07-28 Thread q-parser
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 [EMAIL PROTECTED]
  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 mailing list



Re: [gentoo-user] [OT] Apache Virtual Host

2005-07-28 Thread Paul Raison
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 [EMAIL PROTECTED]
  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 mailing list