Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: DanB35 on December 15, 2015, 02:57:05 PM

Title: Using subdomains
Post by: DanB35 on December 15, 2015, 02:57:05 PM
I've been through the server-manager, and I don't see a way to do this with stock SME 9.1, but I just want to be sure.  I'd like to set up my SME 9.1 server to use a subdomain of ibay.mydomain.tld, rather than needing to go to www.mydomain.tld/ibay.  It's easy enough, of course, to direct a given domain to a specified ibay, but I don't see a way to do this with a subdomain (of either the primary domain, or of any additional domain).

I do see http://wiki.contribs.org/Webapps-common, but frankly the note in the "skill level" box is a little scary.  Is that the way to go, or is there a better/safer way to accomplish this?
Title: Re: Using subdomains
Post by: ReetP on December 15, 2015, 03:09:08 PM
As far as I know you go to server-manager, Domains and add your host

e.g.

If your domain is mydomain.com

Add this in the panel :

myhost.mydomain.com

Point it to an ibay and set DNS to resolve locally

So in your case add a 'domain' of

ibay.mydomain.tld

And point it to the ibay

B. Rgds
John
Title: Re: Using subdomains
Post by: DanB35 on December 15, 2015, 03:20:15 PM
Well, that was easy!  Not quite obvious, but certainly easy.  Yes, that worked fine, thanks!

Now to complicate it just a bit--what if the content isn't in an ibay?  I'm thinking of accessing the webmail from webmail.mydomain.tld instead of /webmail.
Title: Re: Using subdomains
Post by: guest22 on December 15, 2015, 03:42:18 PM
Then it's back to webapps-common ;-)
Title: Re: Using subdomains
Post by: guest22 on December 15, 2015, 03:47:03 PM
I do see http://wiki.contribs.org/Webapps-common (http://wiki.contribs.org/Webapps-common), but frankly the note in the "skill level" box is a little scary.  Is that the way to go, or is there a better/safer way to accomplish this?


Actually it's not that scary, and indeed the skill level is a bit too high.


At the end, all the contrib does is adding a new db key for you required domain and expand templating magic. Removing the key and, again, expand templating magic, will set you back to default.
Title: Re: Using subdomains
Post by: DanB35 on December 15, 2015, 03:51:08 PM
I thought that "Significant risk of irreversible harm" was unlikely (since pretty much anything short of rm -rf / is reversible), but it does rather tend to dissuade someone from trying it...
Title: Re: Using subdomains
Post by: guest22 on December 15, 2015, 03:52:48 PM
Adjusted it.
Title: Re: Using subdomains
Post by: ReetP on December 15, 2015, 05:07:52 PM
Adjusted it.

 :lol: