|
 |
|
 |
03-21-2004, 09:09 AM
|
#1 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,489
|
subdomains dynamically
i have a new site idea, but i'm not sure how to do it.
members who use this site will have their own subdomain. i need to figure out an elegant way to do this which i can automate.
when a member signs up, then they can go to their own custom area: member.somedomain.com
the server would be running apache, and the app would be written in php using mysql for the back-end.
any ideas?
__________________
Mike
|
|
|
03-21-2004, 11:00 AM
|
#2 (permalink)
|
|
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
|
mod-rewrite?
^[a-z0-9]*$\.domainname.com domainname.com/page.php?foo=$1
something like that, perhaps?
|
|
|
03-21-2004, 11:01 AM
|
#3 (permalink)
|
|
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
|
FYI, if that makes no sense its cause i was out drinking late last night and didnt sleep much.
|
|
|
03-21-2004, 12:42 PM
|
#4 (permalink)
|
|
Newbie
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
|
You would still need the DNS part to resolve member.domain.com to your IP..
There are projects out there, which combines SQL and DNS in order to achieve this, given that you run DNS aswell.
|
|
|
03-21-2004, 06:13 PM
|
#5 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,489
|
hmm .. isn't there a way to point all subdomains to an ip instead of listing them individually?
in that case, my problem would be solved in conjuction with mod-rewrite
__________________
Mike
|
|
|
03-22-2004, 07:53 AM
|
#6 (permalink)
|
|
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
|
we do this at work for one of our clients. check this out....
Quote:
$TTL 2h
@ IN SOA ns1.z57.net. hostmaster.z57.com. (
2003123001 1D 7200 7D 3600 )
IN NS ns1.z57.net.
IN NS ns2.z57.net.
IN MX 10 vccarmail.vchomefinders.com.
IN A 209.75.14.65
pop3 IN A 207.110.40.41
pop IN A 207.110.40.41
vccarmail IN A 66.15.81.48
*.vchomefinders.com. IN A 209.75.14.65
|
that seems to be working
|
|
|
03-22-2004, 08:37 AM
|
#8 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,489
|
p.s. yes, i designed that site myself .. u like 
__________________
Mike
|
|
|
03-22-2004, 11:26 AM
|
#9 (permalink)
|
|
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
|
looks like a chalkboard to me 
|
|
|
03-22-2004, 11:38 AM
|
#10 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,489
|
u see chalkboard when u click those links? subdomains should just point to a page where u see text only, no color or image.
__________________
Mike
|
|
|
03-22-2004, 02:22 PM
|
#11 (permalink)
|
|
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
|
|
|
|
03-22-2004, 02:23 PM
|
#12 (permalink)
|
|
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
|
dude http://www.milanointeractive.com/
500 error
also, what is happening with your mail.milanointeractive.com? wildcard might be messing with stuff....
|
|
|
03-22-2004, 03:57 PM
|
#13 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,489
|
hah i think you're right. w00ps.
__________________
Mike
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -8. The time now is 08:23 AM.
|
Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
|
 |
|