Hi all
I have some Library software which works on my laptop using its recommended
virtual host setup
like this:
Listen 8080
Listen 9090
# KOHA's OPAC Configuration
<VirtualHost nsw.royalsoc.org.au:8080>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/koha/koha/opac/htdocs
ServerName nsw.royalsoc.org.au
ScriptAlias /cgi-bin/koha/ /home/koha/koha/opac/cgi-bin/
Redirect permanent index.html
http://nsw.royalsoc.org.au:8080/cgi-bin/koha/opac-main.pl
SetEnv PERL5LIB "/home/koha/koha/intranet/modules"
SetEnv KOHA_CONF "/home/koha/koha/etc/koha.conf"
</VirtualHost>
# KOHA's INTRANET Configuration
<VirtualHost nsw.royalsoc.org.au:9090>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/koha/koha/intranet/htdocs
ServerName nsw.royalsoc.org.au
ScriptAlias /cgi-bin/koha/ "/home/koha/koha/intranet/cgi-bin/"
Redirect permanent index.html
http://nsw.royalsoc.org.au:9090/cgi-bin/koha/mainpage.pl
SetEnv PERL5LIB "/home/koha/koha/intranet/modules"
SetEnv KOHA_CONF "/home/koha/koha/etc/koha.conf"
</VirtualHost>
The above is just for my laptop and I dont have to worry about DNS things etc.
However Im now trying to get it working at http://nsw.royalsoc.org.au
This sites httpd.conf file has two virtual hosts and the hosting provider
has entries in their DNS for us.
The httpd.conf file has:
NameVirtualHost 123.456.123.456 [example only not the real one]
# nsw.royalsoc.org.au
<VirtualHost 123.456.123.456>
ServerName nsw.royalsoc.org.au
ServerAlias nsw.royalsoc.org.au
DocumentRoot /home/blah/blah
ServerAdmin [EMAIL PROTECTED]
</VirtualHost>
# www.royalsoc.org.au
<VirtualHost 123.456.123.456>
ServerName www.royalsoc.org.au
ServerAlias royalsoc.org.au
DocumentRoot /home/rsnsw/web/www/
ServerAdmin [EMAIL PROTECTED]
</VirtualHost>
Problem 1:
If I just include the Koha setup given at the top then funny things happen to the
main site http://nsw.royalsoc.org.au (its gets slow to resolve and the main page
cant find images)
I wanted to transfer the Koha VirtualHost entries so that I can just have links to the Koha
software as http://nsw.royalsoc.org.au/opac and http://nsw.royalsoc.org.au/intranet
rather than as http://opac.royalsoc.org.au (as most libraries would do) or ports such as
8080 and 9090.
This is what I have tried already:
# these are fine.
SetEnv PERL5LIB "/home/koha/koha/intranet/modules"
SetEnv KOHA_CONF "/home/koha/koha/etc/koha.conf"
DocumentRoot /home/koha/koha/opac/htdocs
# this didnt work
#<Location /opac>
# Options ExecCGI
# Order allow,deny
# Allow from all
#</Location>
Alias /opac /home/koha/koha/opac/cgi-bin
ScriptAlias /cgi-bin/koha/ /home/koha/koha/opac/cgi-bin/
<Directory /home/koha/koha/opac/cgi-bin/>
AllowOverride None
# Options Indexes
# Redirect permanent index.html
http://nsw.royalsoc.org.au:8080/cgi-bin/koha/opac-main.pl
# DirectoryIndex index
Options ExecCGI
AddHandler cgi-script .pl
#SetHandler perl-script
Order allow,deny
Allow from all
</Directory>
Basically I am just getting completely lost.
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
--
UTS CRICOS Provider Code: 00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information. If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments. If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html