Koozali.org: home of the SME Server

Using subdomains

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Using subdomains
« 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?
......

Offline ReetP

  • *
  • 3,783
  • +5/-0
Re: Using subdomains
« Reply #1 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Using subdomains
« Reply #2 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.
......

guest22

Re: Using subdomains
« Reply #3 on: December 15, 2015, 03:42:18 PM »
Then it's back to webapps-common ;-)

guest22

Re: Using subdomains
« Reply #4 on: December 15, 2015, 03:47:03 PM »
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?


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.

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: Using subdomains
« Reply #5 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...
......

guest22

Re: Using subdomains
« Reply #6 on: December 15, 2015, 03:52:48 PM »
Adjusted it.

Offline ReetP

  • *
  • 3,783
  • +5/-0
Re: Using subdomains
« Reply #7 on: December 15, 2015, 05:07:52 PM »
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation