[Koha] Configuring Apache Installing Koha on Ubuntu Server
Joe Atzberger
ohiocore at gmail.com
Fri Dec 21 16:19:33 NZDT 2007
You're pretty close, I think. Try this:
1. Remove at least 1 NameVirtualHost lines. The whole idea of
NameVirtualHost is that it uses the same interface (IP and port) for
different virtual servers.
2. Remove the trailing slash in your <VirtualHost> definitions. It
causes Apache to think the value is a word/name, and not an IP. That is why
it complains that the names don't resolve. The string in VirtualHost should
match your NameVirtualHost string *exactly* for all VirtualHosts.
3. Setup DNS. Maybe librarylinux.bssd.org resolves inside your
network. (It doesn't from here.) The fact the browser is requesting from
HOST: librarylinux.bssd.org is what will tell Apache to connect it to
the correct VirtualHost. If you cannot setup DNS, then don't use
NameVirtualHost at all. Just use 2 VirtualHost's on different ports. This
is probably easier for you just to get a demo test setup.
--joe
On Dec 14, 2007 1:00 PM, Darla Grediagin <dgrediagin at bssd.org> wrote:
> Good morning all,
>
> I am at the end of my rope. I am having trouble setting my Apache2 to
> have virtual hosts. Here is the coding from the
> sites.enable.koha-httpd.config file, and then the message from
> restarting Apache2. Any input you have would really be appreciated.
> Koha is running here on a local server that I have next to me. This
> installation will not need patron Internet access as it is just for
> library use to test things before I pass them onto the tech guy that
> runs my library's public version on Koha.
>
>
> sites.enable.koha-httpd.config
> # Ports to listen to for Koha
> # uncomment these if they aren't already in main httpd.conf
>
> #Listen 81
> #Listen 82
>
> # 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 10.3.12.235:82
>
> # KOHA's OPAC Configuration
> <VirtualHost 10.3.12.235:82/>
> ServerAdmin dgrediagin at bssd.org
> DocumentRoot /usr/local/koha/opac/htdocs
> ServerName librarylinux.bssd.org
> ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/
> Redirect permanent index.html
> http://10.3.12.235:82/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>
>
> NameVirtualHost 10.3.12.235:81
>
> # KOHA's INTRANET Configuration
>
> <VirtualHost 10.3.12.235:81/>
> ServerAdmin dgrediagin at bssd.org
> DocumentRoot /usr/local/koha/intranet/htdocs
> ServerName librarylinux.bssd.org
> ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/"
> Redirect permanent index.html
> http://10.3.12.235:81/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"
>
> </VirtualHost>
>
> This is the message that I get when I try to restart Apache.
>
> [Fri Dec 14 08:34:54 2007] [error] (EAI 2)Name or service not known:
> Cannot resolve host name 10.3.12.235:82/ --- ignoring!
> [Fri Dec 14 08:34:54 2007] [error] (EAI 2)Name or service not known:
> Cannot resolve host name 10.3.12.235:81/ --- ignoring!
> [Fri Dec 14 08:34:54 2007] [error] (EAI 2)Name or service not known:
> Cannot resolve host name 10.3.12.235:82/ --- ignoring!
> [Fri Dec 14 08:34:54 2007] [error] (EAI 2)Name or service not known:
> Cannot resolve host name 10.3.12.235:81/ --- ignoring!
> [Fri Dec 14 08:34:54 2007] [warn] NameVirtualHost 10.3.12.235:82 has no
> VirtualHosts
> [Fri Dec 14 08:34:54 2007] [warn] NameVirtualHost 10.3.12.235:81 has no
> VirtualHosts
> [Fri Dec 14 08:34:54 2007] [warn] NameVirtualHost 10.3.12.235:82 has no
> VirtualHosts
> [Fri Dec 14 08:34:54 2007] [warn] NameVirtualHost 10.3.12.235:81 has no
> VirtualHosts
> httpd not running, trying to start
> (13)Permission denied: make_sock: could not bind to address [::]:82
> no listening sockets available, shutting down
> Unable to open logs
>
> Darla Grediagin
> District Librarian
> Bering Strait School District
> Unalakleet, Alaska
> Web Address : http://bssdonline.org/course/view.php?id=51
> Blog: http://aklibrarian1.edublogs.org/
> OPAC: http://opac.bssd.org:8181/cgi-bin/koha/opac-search.pl
>
>
> >
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20071220/9f469424/attachment.html
More information about the Koha
mailing list