Try changing the IP address in the VirtualHost lines of your koha-httpd.conf to the network address of your server and restart apache. I have this problem every time I update Koha. harry wykman wrote:
Hi Folks,
Andy and I have been discussing this under "Apache Problem?". Both of us now appear to have the same problem of being able to access the koha site only from 127.0.1.1 on the box with koha installed but not via a LAN using the host name (which displays the default Apache page (it works!) whether for :80 or :8080).
My apache.conf and koha-httpd.conf files are below. I would really appreciate assistance. I intend to serve the OPAC publicly ultimately but this is an important first step!
Thanks,
KOHA-HTTPD.conf
# Koha Apache Configuration Directives
NameVirtualHost *
## OPAC <VirtualHost 127.0.1.1:80> ServerAdmin webmaster@logos DocumentRoot /usr/share/koha/opac/htdocs ServerName logos # 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" ScriptAlias /search "/usr/share/koha/opac/cgi-bin/opac/search" ErrorLog /var/log/koha/koha-opac-error_log # TransferLog /var/log/koha/koha-opac-access_log SetEnv KOHA_CONF "/etc/koha/koha-conf.xml" SetEnv PERL5LIB "/usr/share/koha/lib" Options +FollowSymLinks
ErrorDocument 400 /cgi-bin/koha/errors/400.pl ErrorDocument 401 /cgi-bin/koha/errors/401.pl ErrorDocument 403 /cgi-bin/koha/errors/403.pl ErrorDocument 404 /cgi-bin/koha/errors/404.pl ErrorDocument 500 /cgi-bin/koha/errors/500.pl
# Rewrite Rules RewriteEngine On
# Uncomment to turn on rewrite logging # RewriteLog /var/log/koha/koha-opac-rewrite.log # RewriteLogLevel 1 RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) RewriteRule (.+) $1?%1%2 [N,R,NE]
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] </VirtualHost>
## Intranet <VirtualHost 127.0.1.1:8080> ServerAdmin webmaster@logos DocumentRoot /usr/share/koha/intranet/htdocs ServerName logos:8080 # ServerAlias intranet.mydomain.com ScriptAlias /cgi-bin/koha/ "/usr/share/koha/intranet/cgi-bin/" ScriptAlias /index.html "/usr/share/koha/intranet/cgi-bin/mainpage.pl" ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/search.pl" ErrorLog /var/log/koha/koha-error_log # TransferLog /var/log/koha/koha-access_log SetEnv KOHA_CONF "/etc/koha/koha-conf.xml" SetEnv PERL5LIB "/usr/share/koha/lib" Options +FollowSymLinks
ErrorDocument 400 /cgi-bin/koha/errors/400.pl ErrorDocument 401 /cgi-bin/koha/errors/401.pl ErrorDocument 403 /cgi-bin/koha/errors/403.pl ErrorDocument 404 /cgi-bin/koha/errors/404.pl ErrorDocument 500 /cgi-bin/koha/errors/500.pl
RewriteEngine On # Uncomment to turn on rewrite logging # RewriteLog /var/log/koha/koha-intranet-rewrite.log # RewriteLogLevel 1
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) RewriteRule (.+) $1?%1%2 [N,R,NE] RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] </VirtualHost>
On my LAN, I would like to be able to access koha using http://logos:80/ or http://logos:8080/
Thanks,
Harry
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
-- Tim McMahon Technical Services West Liberty Public Library