Forums

nuke
nuke
Offline
Resolved
0 votes
Hi. Not sure if this is the right place to post this. I realize this includes DNS, flexshares etc. Admins, please move if necessary.

I've received a request from my daughter to create a subdomain or virtual domain with her username.

ie. daughter_name.ourdomain.com

I thought the easiest way was to create a flexshare with daughter_name but that won't work since daughter_name is her username.

So thought that perhaps I could create a flexshare with daughter_web and then use CNAME DNS record to do point to the virtual domain.

ie. daughter_name.ourdomain.com C daughter_web.ourdomain.com [where daughter_web is the flexshare]

Would this work or is there an easier way to do this without all the futzing around with DNS records?

Thanks in advance.
Saturday, January 09 2016, 09:29 PM
Share this post:
Responses (5)
  • Accepted Answer

    Thursday, December 13 2018, 09:21 PM - #Permalink
    Resolved
    0 votes
    You can create a website in the Webconfig with your daughter's username, then create a CNAME record for it with whoever's hosting your domain name. A flexshare will be created in /var/flexshare/shares for her website, even tho you can't see it in the Webconfig. If you want to limit who has ftp access to her share and/or who can upload to the site, you can create a user group in the Webconfig with just her username in it, then select that group in the site's configuration in the Webconfig. For limited ftp access, give her username ftp privileges in the Webconfig and then you'd want to manually change the user group for the site in /etc/proftpd.d/flex-21.conf and flex-990.conf, then restart the proftpd service. Slap a Joomla website in /var/www/virtual/herwebsite directory and she can create her own website on your server. Fun fun fun.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 13 2018, 11:51 AM - #Permalink
    Resolved
    0 votes
    If it's pointing to your IP address you're good.

    Note that DNS changes may take up to 24 hours. If you want to continue now, you can edit your hosts file to manually add the sub domain. Note that this will only work for your current PC so you should check your DNS again 24 hours later to make sure it's working elsewhere as well don't forget to revert your changes to your hosts file before you check
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 11 2016, 09:48 AM - #Permalink
    Resolved
    0 votes
    What I am trying to say is that I know noting about the workings of flexshares with web names, but even if you can set up your daughter with her name as a subdomain in the flexshare, I would still expect you to have to do something with a CNAME record for her unless you have a wildcard CNAME record.
    The reply is currently minimized Show
  • Accepted Answer

    nuke
    nuke
    Offline
    Sunday, January 10 2016, 10:38 PM - #Permalink
    Resolved
    0 votes
    Thanks for your reply, Nick.

    I'm not sure I understand what you mean.

    I really like the flexshare setup for ease of use and it creates subdomains but my daughter really would like her subdomain to have her name. And that appears to be impossible to do given her username is the name that she wants for the subdomain.

    I get the feeling I've missed something really basic here. Wouldn't it make sense to be able to create flexshares with username.domain.com?

    Thanks again.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 10 2016, 07:21 AM - #Permalink
    Resolved
    0 votes
    I think, whatever else you do, that you'll need a CNAME record, unless there is already a wildcard record there.
    The reply is currently minimized Show
Your Reply