Page 1 of 1
Instant Subdomain Creation
Posted: Thu Oct 26, 2006 5:25 pm
by arbondurant
Hi,
I have been working on a redirection website where users can shorten their url by making thier page a subdomain on my site. Ex. theirname.mysite.com.
This is where I got stuck - how can the user instantly create a subdomain. That's my main problem. If anyone knows about this, please let me know.
Here is what I have done so far:
http://www.surplusmagazineshop.com/redirection2
Username: demo
Password: demo
Again, any help on this would be appreciated
Aaron
Posted: Fri Oct 27, 2006 2:48 am
by ryuuka
i'm no expert in this but from what is see here you
can do without making a seperate domain.
just use the get command for this and put the target name in a table
create a table like this
target_site----ownname----passwd
and if people come in with a site name let the database check the name and
redirect them to the given site
hope it makes sense
Posted: Fri Oct 27, 2006 5:34 pm
by RobertGonzalez
If you actually want to make a subdomain (that will actually resolve) you will need to be able to edit your servers configuration file and tell it what to do with the new subdomain. Usually folks would just leave it as a sub-directory and mock a subdomain using mod_rewrite though.
Posted: Mon Dec 18, 2006 10:41 am
by neel_basu
Everah wrote:If you actually want to make a subdomain (that will actually resolve) you will need to be able to edit your servers configuration file and tell it what to do with the new subdomain. Usually folks would just leave it as a sub-directory and mock a subdomain using mod_rewrite though.
Did You Mean The httpd.conf File or extra/httpd-vhosts.conf
Posted: Mon Dec 18, 2006 11:28 am
by RobertGonzalez
It depends on your web server setup and how it handles subdomains/virtual hosts.
Posted: Mon Dec 18, 2006 11:42 am
by neel_basu
Everah wrote:It depends on your web server setup and how it handles subdomains/virtual hosts.
Sorry I Didn't Understand What You Told Would You Please Explain It
Posted: Mon Dec 18, 2006 2:04 pm
by bokehman
For a subdomain to work it needs to appear in the DNS (or at least a wildcard entry).