Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Leigh Gardiner on May 19, 2002, 01:34:59 PM

Title: Virtual Domains
Post by: Leigh Gardiner on May 19, 2002, 01:34:59 PM
When i add a Virtual Domain, where you select Site Content from the dropdown box theres only Primary Web Site...how can u change that instead of the primary website to point to a directory inside the primary website dir (ect: instead of pointing all requests from http://site1.com to /home/e-smith/files/primary/html it loads the default page in /home/e-smith/files/primary/html/site1)

Thanks.
Title: Re: Virtual Domains
Post by: Urirama on May 19, 2002, 01:47:04 PM
Create an ibay first, then when you create the virtual domain you'll be able to choose the ibay.
Title: Re: Virtual Domains
Post by: Leigh Gardiner on May 19, 2002, 03:52:46 PM
thanks, i did that but now whenever i try to goto http://addy.com it gives this back:

SME Server information bay
This information bay has not yet been customized.
Title: Re: Virtual Domains
Post by: Urirama on May 19, 2002, 03:56:06 PM
That's right. It's the default SME page saying you haven't yet customized your ibay.
Title: Re: Virtual Domains
Post by: Urirama on May 19, 2002, 03:57:42 PM
BTW regarding your original question - have the virtual domain point to a directory inside the primary website dir: I think that's not possible.
Title: Re: Virtual Domains
Post by: Leigh Gardiner on May 19, 2002, 03:58:37 PM
ah ok! its just that i already had a folder with index.php and its overridden my old index.php!!! grrrrr! oh well, ill just have to replace it with :)

thanks man!
Title: Re: Virtual Domains
Post by: Leigh Gardiner on May 19, 2002, 04:03:56 PM
also, yes it is possible to point it into a dir inside the primary/html dir, but u have to edit the httpd.conf manually, but once apache is restarted the httpd.conf is loaded from a template somewhere neways so i lose whatever i change...well ive gotten the ibay working now, thanks man =)

just 1 more question, where abouts is the ibay folder stored now? its not in primary or primary/html.......?
Title: Re: Virtual Domains
Post by: Leigh Gardiner on May 19, 2002, 04:04:46 PM
oh whoops, i just found the ibays folder =)

damn theres no delete/edit button
Title: Re: Virtual Domains
Post by: Urirama on May 19, 2002, 04:09:55 PM
> once apache is restarted the httpd.conf is loaded from a
> template somewhere neways so i lose whatever i change

See http://www.e-smith.org/custom/ to prevent losing any changes.
Title: Re: Virtual Domains
Post by: guestHH on May 19, 2002, 09:27:21 PM
Hi Leigh,

Or let your index.php redirect the user to a dir below the primary/html ...

Regards,
guestHH