[SOLVED] Multisite Install and virtualhosts

doncroco

Joined: 2008-04-15
Posts: 2
Posted: Tue, 2008-04-15 20:41

Hi all !

I have freshly discovered Gallery2, and find it wonderful. I have installed gallery 2 as a multisite install, with 2 galleries. Now I want to have it work with virtualhosts. I have deactivated the base virtualhost which contained either the websites and gallery 2 shared code, and activated the virtualhosts.
It looks like that :
/var/www : common dir
/var/www/gallery2 : shared code for multisite
/var/www/siteOne : first virtualhost
/var/www/siteTwo : second virtualhost

It worked when I had one site with document root on /var/www and accessing galleries as : http://myIP/siteOne
But now I have setup virtualhosts like http://siteOne.mydomain.tld/ access to /var/www/siteOne

And galleries no more work... Is there a pratical guide to configure my website as I want ? Is it impossible to do so ?

The errors I get are like that :

Quote:
[Tue Apr 15 22:31:46 2008] [error] [client 1.2.3.4] File does not exist: /var/www/siteOne/gallery2, referer: http://siteOne.mydomain.tld/main.php

(sorry, my gallery version is configured in french)
Gallery version = 2.2.4 noyau 1.2.0.6
PHP version = 5.2.0-8+etch10 apache2handler
Serveur Web = Apache/2.2.3 (Debian) PHP/5.2.0-8+etch10
Base de données = mysqli 5.0.32-Debian_7etch5-log, lock.system=flock
Boîtes à outils = Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Accélération = none, none
Système d'exploitation = Linux youpiserv 2.6.24.2dedibox-r8-1-c7 #1 Mon Feb 11 17:41:33 CET 2008 i686
Thème par défaut = carbon
gettext = activé
Langage = fr_FR
Navigateur Web = Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1.13) Gecko/20080325 Ubuntu/7.10 (gutsy) Firefox/2.0.0.13
Lignes dans la table GalleryAccessMap = 16
Lignes dans la table GalleryAccessSubscriberMap = 5
Lignes dans la table GalleryUser = 2
Lignes dans la table GalleryItem = 3
Lignes dans la table GalleryAlbumItem = 2
Lignes dans la table GalleryCacheMap = 0

Login or register to post comments
doncroco

Joined: 2008-04-15
Posts: 2
Posted: Wed, 2008-04-16 07:18

I have it done !
Actually, I was looking at RewriteRules but the simplest is the best ! I have set an Alias in my virtualhost config so that it redirects /gallery2 to /var/www/gallery2 this way :

Quote:
Alias /gallery2 /var/www/gallery2

If that can help someone else ;-)

thx

Don

Login or register to post comments