I think we have Koha 3 beta 2 installed on our OpenSuse server, but we have a possible permissions error or vhost address problem when trying to http into it. The specific error is: Using http://127.0.0.2 -and- http://127.0.0.2:80 -------------- Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. ------------- If we try http://127.0.0.1 or http://127.0.0.3, these result in the default apache page (It works!) This seems to be a frequent problem, since the 'net has lots of posts on the subject. I'm wading through some of that, but with specific reference to koha does anyone have any suggestions? Possible related information: -------------------------------------------- rhclkoha:/usr/share/koha # rcapache2 restart Module "ruby" is not installed, ignoring. Check the APACHE_MODULES setting in /etc/sysconfig/apache2. [Thu May 22 09:57:57 2008] [warn] VirtualHost 127.0.0.2:8080 overlaps with VirtualHost 127.0.0.2:8080, the first has precedence, perhaps you need a NameVirtualHost directive [Thu May 22 09:57:57 2008] [warn] VirtualHost 127.0.0.2:80 overlaps with VirtualHost 127.0.0.2:80, the first has precedence, perhaps you need a NameVirtualHost directive Syntax OK Shutting down httpd2 (waiting for all children to terminate) done Starting httpd2 (prefork) [Thu May 22 09:58:08 2008] [warn] VirtualHost 127.0.0.2:8080 overlaps with VirtualHost 127.0.0.2:8080, the first has precedence, perhaps you need a NameVirtualHost directive [Thu May 22 09:58:08 2008] [warn] VirtualHost 127.0.0.2:80 overlaps with VirtualHost 127.0.0.2:80, the first has precedence, perhaps you need a NameVirtualHost directive done ------------------- Greg Lawson Rolling Hills Consolidated Library 1912 N. Belt Highway St. Joseph, MO 64506
You have more than one virtualhost trying to answer your request on that address/port. Apparently the unexpected "other" one is responding first. This error message gives you the best clue: On Thu, May 22, 2008 at 11:08 AM, gsl <gsl@rollinghills.lib.mo.us> wrote:
[Thu May 22 09:57:57 2008] [warn] VirtualHost 127.0.0.2:8080 overlaps with VirtualHost 127.0.0.2:8080, the first has precedence, perhaps you need a NameVirtualHost directive
So you can do one of the following: - locate and disable the "other" virtualhost on 127.0.0.2:8080 - Move your Koha virtualhosts to a different unused IP/port. - Setup DNS and use NameVirtualHost (see apache docs for more details). --Joe Atzberger, Systems Administrator, LibLime
Joe: OK, thanks for the ideas. We had already messed with that some, and have really put it through the washer now. While the virtual host issue was a problem, which we quickly fixed, the real problem is in a line in "koha-httpd.conf", which I've denoted below by "->" for illustrative purposes, that calls a perl script: ----------from koha-httpd.conf--------snip-------- # ServerAlias opac.mydomain.com ScriptAlias /cgi-bin/koha/ "/usr/share/koha/opac/cgi-bin/opac/" -> ScriptAlias /index.html "/usr/share/koha/opac/cgi-bin/opac/opac-main.pl" ScriptAlias /opac-search.pl "/usr/share/koha/opac/cgi-bin/opac/search" ---------------end snip---------------------------- We tested this by creating our own static index.html file, commenting out the above "ScriptAlias /index.html ..." line, and redirecting the koha-httpd.conf to our index.html page, and it worked fine (at least the page come up correctly). So the problem seems to be that the opac-main.pl script can't create an index page, or, less likely, that it's not getting called right by the .conf file. We are looking at the opac-main.pl file now, but we don't see any obvious problems /* but I'm not terribly proficient in perl either :) /*. Greg PS: I've been very impressed by the timeliness and quality of assistance on this list so far. --------------------------------------- Joe Atzberger wrote:
You have more than one virtualhost trying to answer your request on that address/port. Apparently the unexpected "other" one is responding first. This error message gives you the best clue:
On Thu, May 22, 2008 at 11:08 AM, gsl <gsl@rollinghills.lib.mo.us <mailto:gsl@rollinghills.lib.mo.us>> wrote:
[Thu May 22 09:57:57 2008] [warn] VirtualHost 127.0.0.2:8080 <http://127.0.0.2:8080> overlaps with VirtualHost 127.0.0.2:8080 <http://127.0.0.2:8080>, the first has precedence, perhaps you need a NameVirtualHost directive
So you can do one of the following:
* locate and disable the "other" virtualhost on 127.0.0.2:8080 <http://127.0.0.2:8080> * Move your Koha virtualhosts to a different unused IP/port. * Setup DNS and use NameVirtualHost (see apache docs for more details).
--Joe Atzberger, Systems Administrator, LibLime
participants (2)
-
gsl -
Joe Atzberger