[Koha] Koha and Apache NameVirtualHost confusion
Kevin O'Rourke
lists at caboose.org.uk
Mon Mar 5 21:11:56 NZDT 2007
Hi,
I've been trying to set up Koha on our main server but keep hitting
problems with Apache NameVirtualHost configuration. The Apache
documentation on this is very unclear and unhelpful, so I'm hoping that
one of you has already been through this and can help.
Our server has two IP addresses, one connected to the internet and the
other to our LAN. It also has several names: mail.nti.gov.ng and
opac.nti.gov.ng on the internet side and some .ntilan names on the LAN side.
It's Apache 2 on Debian 3.1, which means it's using Debian's slightly
over-clever Apache configuration mechanism.
What I want to do is get it set up so that:
mail.nti.gov.ng -> the default site on the Apache server
opac.nti.gov.ng / opac.ntilan -> the Koha OPAC
opac.ntilan:8080 -> the Koha intranet
At present the intranet is working fine but opac.nti.gov.ng and
mail.nti.gov.ng both take me to the Koha OPAC!
The output of '/usr/sbin/apache2 -S' is:
> VirtualHost configuration:
> 216.118.254.115:80 is a NameVirtualHost
> default server opac.nti.gov.ng (/etc/koha-httpd.conf:23)
> port 80 namevhost opac.nti.gov.ng (/etc/koha-httpd.conf:23)
> 192.168.0.3:80 is a NameVirtualHost
> default server opac.nti.gov.ng (/etc/koha-httpd.conf:23)
> port 80 namevhost opac.nti.gov.ng (/etc/koha-httpd.conf:23)
> 192.168.0.3:8080 is a NameVirtualHost
> default server opac.ntilan (/etc/koha-httpd.conf:41)
> port 8080 namevhost opac.ntilan (/etc/koha-httpd.conf:41)
> wildcard NameVirtualHosts and _default_ servers:
> *:443 is a NameVirtualHost
> default server mail.nti.gov.ng (/etc/apache2/sites-enabled/000-ssl:3)
> port 443 namevhost mail.nti.gov.ng (/etc/apache2/sites-enabled/000-ssl:3)
> *:80 is a NameVirtualHost
> default server mail.nti.gov.ng (/etc/apache2/sites-enabled/000-default:3)
> port 80 namevhost mail.nti.gov.ng (/etc/apache2/sites-enabled/000-default:3)
> Syntax OK
So it looks like the default server from the /etc/koha-httpd.conf
(linked from /etc/apache2/sites-enabled/010-koha) is overriding the one
I want from /etc/apache2/sites-enabled/000-default, any suggestions how
I can prevent this?
To keep this email short I haven't included all the configuration files,
but I can send them if necessary.
Kevin
--
Kevin O'Rourke
ICT Coordinator, National Teachers' Institute, Kaduna, Nigeria
062 316972
More information about the Koha
mailing list