[Koha-devel] virtual hosting on different databases

Chadwick, John, DCA john.chadwick at state.nm.us
Mon Jul 27 19:40:07 CEST 2009


I am doing named virtual hosting and it turned out to be a lot easier than I thought it would be. Two databases, two koha installs, two koha.conf files.

I am doing two of everything so if one site breaks the whole thing does not go down.

+---------------------------------------------------------------------+
John Chadwick, Ed.D. Information Technology Manager
New Mexico State Library
1209 Camino Carlos Rey
Santa Fe, NM 87507
Phone: 505-476-9740  Cell: 505-629-8116 Fax: 505-476-9761
john.chadwick at state.nm.us
http://www.nmstatelibrary.org

-----Original Message-----
From: koha-devel-bounces at lists.koha.org [mailto:koha-devel-bounces at lists.koha.org] On Behalf Of Sébastien Hinderer
Sent: Monday, July 27, 2009 11:15 AM
To: koha-devel at lists.koha.org
Subject: Re: [Koha-devel] virtual hosting on different databases

Hi,

> I am trying to run two virtual koha on same server. That means, i am
> differentiating this by two different port numbers. 8080 & 8085. Now, if i
> want to use *two different database* for two ports, what i need to do? I
> think, i can clear my needs.
> 
> Situation will be like this:
> 
> If one wants to access: 192.168.1.233:8080  --> he/she will work on *koha *
> database
> If another one wants to access: 192.168.1.233:8085 --> he/she will
> work on *koha1
> *database.
> 
> Is it possible?

Yes. You will have two http virtual hosts, one for each db.
The only thing you have to do is to create one Koha configuration file
for each vhost (so for each databasse) and define the environment
variables correctly in your apache configuration file, so that the
script get called with the right db info.

hth,
Sébastien.
_______________________________________________
Koha-devel mailing list
Koha-devel at lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-devel

______________________________________________________________________
This inbound email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________


Confidentiality Notice: This e-mail, including all attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited unless specifically provided under the New Mexico Inspection of Public Records Act. If you are not the intended recipient, please contact the sender and destroy all copies of this message. -- This email has been scanned by the Sybari - Antigen Email System. 




Confidentiality Notice: This e-mail,including all attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review,use,disclosure or distribution is prohibited unless specifically provided under the New Mexico Inspection of Public Records Act. If you are not the intended recipient, please contact the sender and destroy all copies of this message.  -- This email has been scanned by the MessageLabs Email Security System.



More information about the Koha-devel mailing list