Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-21-2004, 09:09 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 03-21-2004, 11:00 AM   #2 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
mod-rewrite?

^[a-z0-9]*$\.domainname.com domainname.com/page.php?foo=$1

something like that, perhaps?
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-21-2004, 11:01 AM   #3 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
FYI, if that makes no sense its cause i was out drinking late last night and didnt sleep much.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-21-2004, 12:42 PM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,711
redhead is on a distinguished road
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.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 03-21-2004, 06:13 PM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 03-22-2004, 07:53 AM   #6 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
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
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-22-2004, 08:37 AM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
yeah, scott gave me some advice on that. i got it working ...

http://asdfaasdf.milanointeractive.com
http://a.milanointeractive.com

that with mod re-write, this is gonna be cool =)
__________________
Mike
sde is offline   Reply With Quote
Old 03-22-2004, 08:37 AM   #8 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
p.s. yes, i designed that site myself .. u like
__________________
Mike
sde is offline   Reply With Quote
Old 03-22-2004, 11:26 AM   #9 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
looks like a chalkboard to me
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-22-2004, 11:38 AM   #10 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 03-22-2004, 02:22 PM   #11 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
no, i visited http://milanointeractive.com
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-22-2004, 02:23 PM   #12 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
dude http://www.milanointeractive.com/

500 error

also, what is happening with your mail.milanointeractive.com? wildcard might be messing with stuff....
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-22-2004, 03:57 PM   #13 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
hah i think you're right. w00ps.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
making a 3 column table dynamically sde PHP 8 08-28-2004 07:14 PM
Adjust physical output size dynamically metazai PHP 8 08-24-2004 10:15 AM
dynamic allocation..urgent help needed!!! kashif Standard C, C++ 4 04-21-2003 08:50 AM


All times are GMT -8. The time now is 08:23 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting