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
Posts: 27300
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
Posts: 2
That's great, many thanks !! I'll give it a whirl.
- Adam
Posts: 1
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