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.
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.
In Web Server
Share this post:
Responses (5)
-
Accepted Answer
-
Accepted Answer
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. -
Accepted Answer
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. -
Accepted Answer
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 -
Accepted Answer
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.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »