[Koha] How to setup httpd.conf to use domain/opac instead of opac.domain or domain:port

Michael Lake Mike.Lake at uts.edu.au
Fri Jun 16 17:51:32 NZST 2006


Hi all

I would like to have the opac served from the URL http://nsw.royalsoc.org.au/opac
instead of from a port say http://nsw.royalsoc.org.au:8000
The reason is that I have the Intranet being served from 8080 and although I can 
setup opac at say :8000 it's blocked from my work here and other ports such as 9000 
and many others are blocked. I know 80 and 8080 seem OK.

Hence I have setup the Intranet from :8080 and it works fine.
I'm having problems in working out how to get http://nsw.royalsoc.org.au/opac 
working. Note: I don't want to use http://opac.royalsoc.org.au/ as I'm using 
http://www.royalsoc.org.au/ and http://qld.royalsoc.org.au/ and so 
opac.royalsoc.org.au does not "fit in".

I thought that maybe an "Alias /opac /home/koha/koha/opac/htdocs" might work but I'm 
getting very confused with virtual domains, virt name hosting etc.

Some help in the config would be appreciated.

# Ports to listen to for Koha
Listen 80
Listen 8080
Listen 8000 <--- this is blocked so can't really use it

NameVirtualHost 300.200.100.111

##############################
# nsw.royalsoc.org.au
##############################

<VirtualHost 300.200.100.111>    <-- my real IP addr is here.
    ServerName nsw.royalsoc.org.au
    ServerAlias nsw.royalsoc.org.au
    DocumentRoot /home/rsnsw/web/nsw
    ErrorLog  /var/log/apache/nsw-error.log
    CustomLog /var/log/apache/nsw-access.log combined
</VirtualHost>

# Koha OPAC settings
# I want to move this to be available from:
# http://nsw.royalsoc.org.au/opac
<VirtualHost nsw.royalsoc.org.au:8000>
    ServerName nsw.royalsoc.org.au
    ServerAlias nsw.royalsoc.org.au
    DocumentRoot /home/koha/koha/opac/htdocs
    ScriptAlias /cgi-bin/koha/ /home/koha/koha/opac/cgi-bin/
    Redirect permanent index.html 
http://nsw.royalsoc.org.au:8000/cgi-bin/koha/opac-main.pl
    ErrorLog  /var/log/apache/nsw-error.log
    CustomLog /var/log/apache/nsw-access.log combined
    SetEnv PERL5LIB "/home/koha/koha/intranet/modules"
    SetEnv KOHA_CONF "/home/koha/koha/etc/koha.conf"
</VirtualHost>

# Koha Intranet settings
# This is sworking fine.
<VirtualHost nsw.royalsoc.org.au:8080>
    ServerName nsw.royalsoc.org.au
    ServerAlias nsw.royalsoc.org.au
    DocumentRoot /home/koha/koha/intranet/htdocs
    ScriptAlias /cgi-bin/koha/ "/home/koha/koha/intranet/cgi-bin/"
    Redirect permanent index.html
         http://nsw.royalsoc.org.au:8080/cgi-bin/koha/mainpage.pl
    ErrorLog  /var/log/apache/koha-error.log
    TransferLog /var/log/apache/koha-access.log
    SetEnv PERL5LIB "/home/koha/koha/intranet/modules"
    SetEnv KOHA_CONF "/home/koha/koha/etc/koha.conf"
</VirtualHost>

Mike

-- 
Michael Lake
Science Faculty, UTS
Ph: 9514 8232 Fx: 9514 1460





More information about the Koha mailing list