11-27-2014, 10:33 AM
Hey ! ( TLDR )
So those domains that seemingly magically create new subdomains for users, or companies/sites, after educating my noobish self, are really just virtual linking to the actual folder, or page, belonging to that user/subdomain etc. the code is majority in ur application % htaccess; ive more or less got a hold on that now, but need some kind help or advice on the actual DNS config. I think i got it, but kindly review if all good. Im also happy to share the htaccess/php snippets if needed.
So this app will have main site/landing @ http://myapp.mycompany.com/
and will redirect/create user subfolder once registered:- http://Newuser.Myapp.mycompany.com/
Which is just mycompany.com/~NewUsr/ or whatever routing u might have setup. it may very well be linking to a Login or Homepage, which chks auth, or goes to login
Also need http://data.myapp.mycompany.com/ which is either just a cache/img folder or even later could redirect it to cdn from teh app itself.
(notice in both cases it is a double sub) but apparently it counts as a single. So the word is that i use a Wildcard where the name will vary,
so i need to set up *.myapp.myco.com as a seperate dns record, But now second question, in line with below template, how does dns know to link to DATA.MYAPP.MYCO, and not DATA.MYCO. im guessing its something to do with the @ all over, if you could kindly briefly explain that one, i would be greatful. there is also a http://www.myapp.myco.com
SO as far as i understand it then, the ACTUAL base domain, for this app, or set of DNS is actually pointing to myapp.myco.com, should think of it as single, and not being a subd itself. if so i guess second Q answered then lol
What ive sourced from all over and current work in progress template so far as DNSconfig goes:-
-------------------------------------------------------------------------------
$TTL 14400
@ IN SOA ns1.company.cpom. root.myappp.company.com. (
xxxx
7200
xxx
xxxxxxx
180 )
@ 14400 IN NS ns1.company.com
@ 14400 IN NS ns2.company.com
@ 14400 IN A 123.56.67.890
mail 14400 IN A 123.45.67.890
www 14400 IN A 123.45.67.890
@ 14400 IN TXT "v=spf1 a mx ip4:123.45.67.890 ?all"
data 14400 IN CNAME @
* 14400 IN CNAME @
Thanks bros, will send a something urways for the effort, any small hint or nudge or thumbs up appreciated
Cheers and best,
Loomz
So those domains that seemingly magically create new subdomains for users, or companies/sites, after educating my noobish self, are really just virtual linking to the actual folder, or page, belonging to that user/subdomain etc. the code is majority in ur application % htaccess; ive more or less got a hold on that now, but need some kind help or advice on the actual DNS config. I think i got it, but kindly review if all good. Im also happy to share the htaccess/php snippets if needed.
So this app will have main site/landing @ http://myapp.mycompany.com/
and will redirect/create user subfolder once registered:- http://Newuser.Myapp.mycompany.com/
Which is just mycompany.com/~NewUsr/ or whatever routing u might have setup. it may very well be linking to a Login or Homepage, which chks auth, or goes to login
Also need http://data.myapp.mycompany.com/ which is either just a cache/img folder or even later could redirect it to cdn from teh app itself.
(notice in both cases it is a double sub) but apparently it counts as a single. So the word is that i use a Wildcard where the name will vary,
so i need to set up *.myapp.myco.com as a seperate dns record, But now second question, in line with below template, how does dns know to link to DATA.MYAPP.MYCO, and not DATA.MYCO. im guessing its something to do with the @ all over, if you could kindly briefly explain that one, i would be greatful. there is also a http://www.myapp.myco.com
SO as far as i understand it then, the ACTUAL base domain, for this app, or set of DNS is actually pointing to myapp.myco.com, should think of it as single, and not being a subd itself. if so i guess second Q answered then lol
What ive sourced from all over and current work in progress template so far as DNSconfig goes:-
-------------------------------------------------------------------------------
$TTL 14400
@ IN SOA ns1.company.cpom. root.myappp.company.com. (
xxxx
7200
xxx
xxxxxxx
180 )
@ 14400 IN NS ns1.company.com
@ 14400 IN NS ns2.company.com
@ 14400 IN A 123.56.67.890
mail 14400 IN A 123.45.67.890
www 14400 IN A 123.45.67.890
@ 14400 IN TXT "v=spf1 a mx ip4:123.45.67.890 ?all"
data 14400 IN CNAME @
* 14400 IN CNAME @
Thanks bros, will send a something urways for the effort, any small hint or nudge or thumbs up appreciated
Cheers and best,
Loomz