Separate sets of albums for different virtual hosts ?

abworrall

Joined: 2005-07-12
Posts: 2
Posted: Tue, 2005-07-12 16:19

I do a lot of virtual hosting in Apache, and I'd like to be able to set up just one instance of Gallery, but have it serve different sets of galleries via different domains. Ideally, I'd just add something like this to the config of each virtual host:

Alias /gallery/ /my/shared/gallery/installation
Alias /albums/ /private/albums/for/this/domain

Or perhaps set some PHP config per domain.

As far as I can see, Gallery can only have one album directory, which is stored in config.php; this means that to have a separate set of albums for a different domain, I'd need to install an instance of Gallery under that domain. For 10-20 domains, that will get pretty boring when it's time to upgrade !

Have I missed something obvious here, or is support of virtual hosts not an easy thing to do ?

Many thanks,

- Adam

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2005-07-13 14:42

Looking throught the patches I found:
http://sourceforge.net/tracker/index.php?func=detail&aid=1036662&group_id=7130&atid=307130

There is a few more but I think that is the most recent.

Dave

 
abworrall

Joined: 2005-07-12
Posts: 2
Posted: Wed, 2005-07-13 14:55

That's great, many thanks !! I'll give it a whirl.

- Adam

 
sam karush

Joined: 2006-10-09
Posts: 1
Posted: Mon, 2006-10-09 10:39

How would I use this patch? Where do I place this file, or code? I have several virtual hosts myself, and would like a seperate gallery install for each.
thanks,
sam