Koozali.org: home of the SME Server

Virtual Domains

Leigh Gardiner

Virtual Domains
« 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.

Urirama

Re: Virtual Domains
« Reply #1 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.

Leigh Gardiner

Re: Virtual Domains
« Reply #2 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.

Urirama

Re: Virtual Domains
« Reply #3 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.

Urirama

Re: Virtual Domains
« Reply #4 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.

Leigh Gardiner

Re: Virtual Domains
« Reply #5 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!

Leigh Gardiner

Re: Virtual Domains
« Reply #6 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.......?

Leigh Gardiner

Re: Virtual Domains
« Reply #7 on: May 19, 2002, 04:04:46 PM »
oh whoops, i just found the ibays folder =)

damn theres no delete/edit button

Urirama

Re: Virtual Domains
« Reply #8 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.

guestHH

Re: Virtual Domains
« Reply #9 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