You're pretty close, I think. Try this:<br><br><ol><li>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. </li>
<li>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.
<br></li><li>Setup DNS. Maybe <a href="http://librarylinux.bssd.org/" target="_blank">librarylinux.bssd.org</a> resolves inside your network. (It doesn't from here.) The fact the browser is requesting from HOST: <a href="http://librarylinux.bssd.org/" target="_blank">
librarylinux.bssd.org</a> 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.
</li></ol><br>--joe<br><br><div class="gmail_quote">On Dec 14, 2007 1:00 PM, Darla Grediagin <<a href="mailto:dgrediagin@bssd.org">dgrediagin@bssd.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Good morning all,<br><br>I am at the end of my rope. I am having trouble setting my Apache2 to<br>have virtual hosts. Here is the coding from the<br>sites.enable.koha-httpd.config file, and then the message from<br>restarting Apache2. Any input you have would really be appreciated.
<br>Koha is running here on a local server that I have next to me. This<br>installation will not need patron Internet access as it is just for<br>library use to test things before I pass them onto the tech guy that<br>runs my library's public version on Koha.
<br><br><br>sites.enable.koha-httpd.config<br># Ports to listen to for Koha<br># uncomment these if they aren't already in main httpd.conf<br><br>#Listen 81<br>#Listen 82<br><br># NameVirtualHost is used by one of the optional configurations detailed
<br>below<br># Please make sure this line is correct before uncommenting.<br># See <a href="http://httpd.apache.org/docs/vhosts/" target="_blank">http://httpd.apache.org/docs/vhosts/</a> for some guides.<br><br>NameVirtualHost
<a href="http://10.3.12.235:82" target="_blank">10.3.12.235:82</a><br><br># KOHA's OPAC Configuration<br><VirtualHost <a href="http://10.3.12.235:82/" target="_blank">10.3.12.235:82/</a>><br>ServerAdmin <a href="mailto:dgrediagin@bssd.org">
dgrediagin@bssd.org</a><br>DocumentRoot /usr/local/koha/opac/htdocs<br>ServerName <a href="http://librarylinux.bssd.org" target="_blank">librarylinux.bssd.org</a><br>ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/
<br>Redirect permanent index.html<br><a href="http://10.3.12.235:82/cgi-bin/koha/opac-main.pl" target="_blank">http://10.3.12.235:82/cgi-bin/koha/opac-main.pl</a><br>ErrorLog /usr/local/koha/log/opac-error_log<br>TransferLog /usr/local/koha/log/opac-access_log
<br>SetEnv PERL5LIB "/usr/local/koha/intranet/modules"<br>SetEnv KOHA_CONF "/etc/koha.conf"<br></VirtualHost><br><br>NameVirtualHost <a href="http://10.3.12.235:81" target="_blank">10.3.12.235:81
</a><br><br># KOHA's INTRANET Configuration<br><br><VirtualHost <a href="http://10.3.12.235:81/" target="_blank">10.3.12.235:81/</a>><br>ServerAdmin <a href="mailto:dgrediagin@bssd.org">dgrediagin@bssd.org</a><br>
DocumentRoot /usr/local/koha/intranet/htdocs<br>ServerName <a href="http://librarylinux.bssd.org" target="_blank">librarylinux.bssd.org</a><br>ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/"<br>Redirect permanent
index.html <a href="http://10.3.12.235:81/cgi-bin/koha/mainpage.pl" target="_blank">http://10.3.12.235:81/cgi-bin/koha/mainpage.pl</a><br>ErrorLog /usr/local/koha/log/koha-error_log<br>TransferLog /usr/local/koha/log/koha-access_log
<br>SetEnv PERL5LIB "/usr/local/koha/intranet/modules"<br>SetEnv KOHA_CONF "/etc/koha.conf"<br><br></VirtualHost><br><br>This is the message that I get when I try to restart Apache.<br><br>[Fri Dec 14 08:34:54 2007] [error] (EAI 2)Name or service not known:
<br>Cannot resolve host name <a href="http://10.3.12.235:82/" target="_blank">10.3.12.235:82/</a> --- ignoring!<br>[Fri Dec 14 08:34:54 2007] [error] (EAI 2)Name or service not known:<br>Cannot resolve host name <a href="http://10.3.12.235:81/" target="_blank">
10.3.12.235:81/</a> --- ignoring!<br>[Fri Dec 14 08:34:54 2007] [error] (EAI 2)Name or service not known:<br>Cannot resolve host name <a href="http://10.3.12.235:82/" target="_blank">10.3.12.235:82/</a> --- ignoring!<br>[Fri Dec 14 08:34:54 2007] [error] (EAI 2)Name or service not known:
<br>Cannot resolve host name <a href="http://10.3.12.235:81/" target="_blank">10.3.12.235:81/</a> --- ignoring!<br>[Fri Dec 14 08:34:54 2007] [warn] NameVirtualHost <a href="http://10.3.12.235:82" target="_blank">10.3.12.235:82
</a> has no<br>VirtualHosts<br>[Fri Dec 14 08:34:54 2007] [warn] NameVirtualHost <a href="http://10.3.12.235:81" target="_blank">10.3.12.235:81</a> has no<br>VirtualHosts<br>[Fri Dec 14 08:34:54 2007] [warn] NameVirtualHost
<a href="http://10.3.12.235:82" target="_blank">10.3.12.235:82</a> has no<br>VirtualHosts<br>[Fri Dec 14 08:34:54 2007] [warn] NameVirtualHost <a href="http://10.3.12.235:81" target="_blank">10.3.12.235:81</a> has no<br>VirtualHosts
<br>httpd not running, trying to start<br>(13)Permission denied: make_sock: could not bind to address [::]:82<br>no listening sockets available, shutting down<br>Unable to open logs<br><br>Darla Grediagin<br>District Librarian
<br>Bering Strait School District<br>Unalakleet, Alaska<br>Web Address : <a href="http://bssdonline.org/course/view.php?id=51" target="_blank">http://bssdonline.org/course/view.php?id=51</a><br>Blog: <a href="http://aklibrarian1.edublogs.org/" target="_blank">
http://aklibrarian1.edublogs.org/</a><br>OPAC: <a href="http://opac.bssd.org:8181/cgi-bin/koha/opac-search.pl" target="_blank">http://opac.bssd.org:8181/cgi-bin/koha/opac-search.pl</a><br><br><br>><br>_______________________________________________
<br>Koha mailing list<br><a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br><a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a>
<br></blockquote></div><br>