Hi again

I have tried a different tack. I made two extra VirtualHost containers but on different ports to the main one at 80 and put the apache directives that I need for the OPAC and Intranet sites inside those extra containers.

The following sites now work: http://nsw.royalsoc.org.au
        http://nsw.royalsoc.org.au:8080

The problem is that http://nsw.royalsoc.org.au:9090 does not work.
It eventually times out but there is no error in the error log to tell
me what I have wrong in the httpd config file.

Between the cuts is the httpd.conf
----------------------------------------------------
# Ports to listen to for Koha
Listen 80
Listen 8080
Listen 9090

NameVirtualHost 203.17.210.151

SetEnv PERL5LIB "/home/koha/koha/intranet/modules"
SetEnv KOHA_CONF "/home/koha/koha/etc/koha.conf"

# nsw.royalsoc.org.au
<VirtualHost 203.17.210.151>
  ServerName nsw.royalsoc.org.au
  ServerAlias nsw.royalsoc.org.au
  DocumentRoot /home/rsnsw/web/nsw
</VirtualHost>

# Below is the same virt host but different ports.
# 8080 for OPAC, 9090 for Intranet.
# Koha settings for the OPAC
<VirtualHost 203.17.210.151:8080>
  ServerName nsw.royalsoc.org.au
  ServerAlias nsw.royalsoc.org.au
  Alias /opac /home/koha/koha/opac/htdocs
  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:8080/cgi-bin/koha/opac-main.pl
</VirtualHost>

# Koha settings for the Intranet
<VirtualHost 203.17.210.151:9090>
  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:9090/cgi-bin/koha/mainpage.pl
</VirtualHost>
-----------------------------------------------------

Michael Lake wrote:

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.



--
Michael Lake
Chemistry, Materials & Forensic Science, UTS
Ph: 9514 1725 Fx: 9514 1460
[pls ignore idiot lawyer's msg below]



--
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

Reply via email to