<br>My apologies for replying to Joe only in my last email. I am not familiar with gmail. I had wanted to reply to the list. I usually use Gmane, but it seems like koha's group over there is very sluggish. In any case, the solution is in my reply below.
<br><br><div><span class="gmail_quote">On 9/10/07, <b class="gmail_sendername">Joe Atzberger</b> <<a href="mailto:ohiocore@gmail.com">ohiocore@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The Apache "Redirect" command is used to generate an error message to the browser, in this case type 301 (permanent redirect). Unlike "Alias" and other commands, the address supplied as an argument to "Redirect" should be a full URL-path valid from the point of view of the client browser, which means it should resolve via DNS.
<br><br>So you probably want something like<br><blockquote>Redirect permanent index.html <a href="http://audioserver:8001/cgi-bin/koha/mainpage.pl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://audioserver.mydomain.com:8001/cgi-bin/koha/mainpage.pl</a><br></blockquote>The reason you can access from inside your own LAN is because your local DNS requests happen to append your domain automatically. Of course browsers in the outside world don't have that critical piece of info.
<br><span class="sg"><br>--joe atzberger</span><div><span class="e" id="q_114f1b78b04cbf89_2"><br><br><div><span class="gmail_quote">On 9/10/07, <b class="gmail_sendername">H. S.</b> <<a href="mailto:hs.samix@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hs.samix@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I installed Koha 2.2.9 on a machine running Ubuntu (I am going to show it to a small community library to convince them to use this application). All seems to have gone well, however the virtual web server part is giving some problems.
<br><br>The machine in questions is already running a web server on port 80. So I configured Koha to listen on ports 8000 and 8001. Here is the conf file I am currently using:<br>--------------------------------------------------------------------
<br># Koha 2.2 Apache Virtual Host Config File<br>#<br># Please include this file in your apache configuration.<br># The best way to do that depends on your site setup.<br># Some like an Include adding to /etc/apache/httpd.conf
<br># and some prefer a symlink to this file from some dir.<br># Please refer to your system manuals.<br><br># Ports to listen to for Koha<br># uncomment these if they aren't already in main httpd.conf<br>Listen 8000
<br>
Listen 8001<br><br># NameVirtualHost is used by one of the optional configurations detailed below<br># Please make sure this line is correct before uncommenting.<br># See <a href="http://httpd.apache.org/docs/vhosts/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://httpd.apache.org/docs/vhosts/
</a> for some guides.<br><br>#NameVirtualHost <a href="http://11.22.33.44" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">11.22.33.44</a><br><br># KOHA's OPAC Configuration<br><VirtualHost audioserver:8000>
<br> ServerAdmin <a href="mailto:sahambi@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
sahambi@yahoo.com</a><br> DocumentRoot /usr/local/koha/opac/htdocs<br> ServerName audioserver<br> ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/<br> Redirect permanent index.html <a href="http://audioserver:8000/cgi-bin/koha/opac-main.pl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://audioserver:8000/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> <br></VirtualHost><br># KOHA's INTRANET Configuration<br><VirtualHost audioserver:8001><br> ServerAdmin <a href="mailto:sahambi@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
sahambi@yahoo.com
</a><br> DocumentRoot /usr/local/koha/intranet/htdocs<br> ServerName audioserver <br> ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/"<br> Redirect permanent index.html <a href="http://audioserver:8001/cgi-bin/koha/mainpage.pl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://audioserver:8001/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># If you want to use name based Virtual Hosting:<br># 1. remove the two Listen lines<br># 2. replace audioserver:8000 wih <a href="http://your.opac.domain.name" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
your.opac.domain.name</a><br># 3. replace ServerName audioserver wih ServerName <a href="http://your.opac.domain.name" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">your.opac.domain.name</a><br>
# 4. replace audioserver:8001 wih your intranet domain name<br># 5. replace ServerName audioserver wih ServerName
<a href="http://your.intranet.domain.name" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">your.intranet.domain.name</a><br>#<br># If you want to use NameVirtualHost'ing (using two names on one ip address):
<br># 1. Follow steps 1-5 above<br># 2. Uncomment the NameVirtualHost line and set the correct ip address
<br><br>--------------------------------------------------------------------</blockquote></div></span></div></blockquote><div><br><br><br><br>Here are two changes that worked in the stanza I mentioned above:<br><br>1.<br>
<VirtualHost <a href="http://192.168.1.10:8000/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.1.10:8000</a>> <--- I put the IP address here
<br><br>2.<br>Redirect permanent index.html <a href="http://mydomain.com:8000/cgi-bin/koha/opac-main.pl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mydomain.com:8000/cgi-bin/koha/opac-main.pl
</a> <--- put the domain name here.<br><br>Similarly for the intranet stanza.
<br><br>Then I was able to browse koha from the internet and also login as admin. Now I need to play with it a bit :)<br><br>thanks,<br>->HS<br><br><br></div></div><br>