I'm looking for an automatic subdomain creator..

Discussion in 'Site & Server Administration' started by SLiM_BoY, Jun 19, 2006.

  1. #1
    Hi to all..

    I'm looking for an automatic subdomain creator script that creates new subdomains and new pages-contents for search engines automaticly.

    Is there any free scripts that making this work? Or if I want to buy a script like that, how much does it cost ?
     
    SLiM_BoY, Jun 19, 2006 IP
  2. Art

    Art Peon

    Messages:
    711
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You won't be able easily to create "true" subdomains without creating/editing a hostfile and restarting Apache (there are some workarounds apparently), however you can use mod_rewrite to redirect a subdomain to a script variable. i.e.

    sub.domain.com -> www.domain.com/sub/

    You will also need to set up wildcard DNS. Google the terms I've mentioned and you should be able to find a tutorial related to your application.

    Enjoy :)
     
    Art, Jun 19, 2006 IP
  3. yugu

    yugu Peon

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Actually, you can.
    If you are using any control pannel (like cPannel). You can write a simple script that sends command to it.
    Just employ the coder. Or send me PM ;)
     
    yugu, Jun 20, 2006 IP
  4. fleshjoe

    fleshjoe Guest

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have full root access to the server and mod-rewrite enabled so I could do it in httpd.conf or a htaccess file.

    I want to do the following: when I create a subdirectory in /home/<mysite.com>/subdomains/, e.g. /home/<mysite.com>/subdomains/yugu, then http://yugu.mysite.com/ would access the files stored there.

    Is there a way to do this?
     
    fleshjoe, Feb 18, 2007 IP